[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

ledsonMCP23017 example RSS feed
Forum Index » IoAbstraction & TaskManagerIO
Author Message
scjerry


Joined: Jul 12, 2020
Messages: 4
Offline
Is there a circuit diagram for this example? I'm an Arduino newbie.
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
To be honest, as the circuit we used is just the reference design, it's available online in many places already, and also in the device datasheet. We'll try and add a circuit diagram to the page though in the futre.

Thanks,
Dave
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Something to think about is that the MCP23017 is not the most straightforward device to use for someone new to Arduino. Firstly, it's quite a complex device with a lot of options. Also, It really needs clean power, and bypass capacitors are an absolute must, and they must be as close to the power pins as possible. I'd go for at least 10uF in parallel with 0.1uF. Whichever design you use, make sure the reset pin is in a known state.
scjerry


Joined: Jul 12, 2020
Messages: 4
Offline
Datasheet doesn't have an example. http://ww1.microchip.com/downloads/en/DeviceDoc/20001952C.pdf
nor this: https://cdn-shop.adafruit.com/datasheets/mcp23017.pdf
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Hi there,

I've added an example circuit to master in the repo so it will be in the next release, it's a circuit diagram based on how I usually assemble this device on bread-board. Please double-check it for me while you're building it out. Especially that the power connections are right etc. I have checked over it before pushing it but even so, please check it again.

https://github.com/davetcc/IoAbstraction/blob/master/examples/ledsOnMCP23017/mcp23017-schematic.png

Like I said before, the MCP23017 is a far more complex device than the PCF8574, it certainly needs a 0.1uF capacitor right next to the power input at the absolute minimum.

Thanks,
Dave
scjerry


Joined: Jul 12, 2020
Messages: 4
Offline
Hi Dave
Thanks for the prompt response. I'm dealing with an existing hardware implementation that uses the mcp23017/mcp23018 and am attempting to revise the software to use your tasking approach. So purchased a stand-alone unit for experimentation and learning.

Big learning curve! Love your work.

This helps a lot. Will test it out and get back.

Jerry
 
Forum Index » IoAbstraction & TaskManagerIO
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.