Made a little MicroPython driver for 74HC595 shift registers, both SPI + bit bang.
More examples coming soon.
https://github.com/mcauser/micropython-74hc595
74HC595 shift registers
Re: 74HC595 shift registers
Thanks for sharing this mcauser,
Could this device can be used to count pulses ?
I'm searching a work around to the lack of pulse counter support for ESP32. (in official firmware at least)
I understand that shift register device can be used to do exactly that, am I right ?
Do you know if 74HC595 can do it ? if it's the case do you think you can add this behaviour to the driver ?
Could this device can be used to count pulses ?
I'm searching a work around to the lack of pulse counter support for ESP32. (in official firmware at least)
I understand that shift register device can be used to do exactly that, am I right ?
Do you know if 74HC595 can do it ? if it's the case do you think you can add this behaviour to the driver ?
nodemcu V2 (amica)
micropython firmware Daily build 05/31/2016
micropython firmware Daily build 05/31/2016
-
- Posts: 9
- Joined: Wed May 12, 2021 9:47 pm
Re: 74HC595 shift registers
This is fantastic - thank you for posting!
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: 74HC595 shift registers
@pidou46 A shift register is not the right component for pulse counting. Assuming the pulses are arriving too fast to count in software, I would consider a binary counter chip.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: 74HC595 shift registers
@pythoncoder do you have some specific binary counter ref in mind ?
On my side I have investigate and found: NXP - PCF8593 with i2c interface
On my side I have investigate and found: NXP - PCF8593 with i2c interface
nodemcu V2 (amica)
micropython firmware Daily build 05/31/2016
micropython firmware Daily build 05/31/2016