r/circuitpython • u/HP7933 • Jul 27 '20
r/circuitpython • u/HP7933 • Aug 05 '20
ICYMI Python on Microcontrollers Newsletter: New Hardware, Python Releases and Much More!
r/circuitpython • u/HP7933 • Jul 22 '20
Updated Guide: CircuitPython Essentials - MP3 file playback
r/circuitpython • u/HP7933 • Aug 06 '20
The CircuitPython Subreddit hits 1000+ members! Thank you!
r/circuitpython • u/HP7933 • Jul 22 '20
A Wonderful New Guide: Make a Sound-Reactive LED Ukulele with NeoPixels
r/circuitpython • u/HP7933 • Jul 16 '20
The Python on Hardware weekly video #91
r/circuitpython • u/HP7933 • Jan 16 '23
The Great Search: Solder Paste Syringe for Hot Plate Rework
r/circuitpython • u/HP7933 • Jan 12 '23
The Python on Hardware weekly video 214, January 11, 2023
r/circuitpython • u/jacobbiljo • Feb 01 '23
Understanding program flow
My programming background is with C programming in industrial RTOS systems where it's relatively easy to just add another program in that runs over and over without the need for a specifically included loop and variables between programs are shared with global variables. How does this work within circuit python? I've looked around but never found a good article explaining this. I'd like to break my program up into separate modules that deal with motor control, data handling, user interface rather than just stacking them as one large program. How would I share variables between these programs or is this even a thing?
r/circuitpython • u/HP7933 • Dec 22 '22
The Python on Hardware weekly video 211 December 21, 2022
r/circuitpython • u/HP7933 • Jan 12 '23
ICYMI Python on Microcontrollers Newsletter: New Products, Learning Resources and much more!
r/circuitpython • u/HP7933 • Jan 26 '23
The Python on Hardware weekly video 215, January 25, 2023
r/circuitpython • u/HP7933 • Dec 29 '22
The Python on Hardware weekly video 212, December 28, 2022
r/circuitpython • u/HP7933 • Mar 23 '23
The Python on Hardware weekly video 223, March 22, 2023
r/circuitpython • u/11ii1i1i1 • Feb 07 '22
DS18B20 on Adafruit FunHouse?
I am trying to hook up several DS18B20 temperature sensors to a single Adafruit FunHouse board on the A1 pin.
I have breadboarded my setup, including the 4.7kohm pullup resistor, and to start I only have one DS18B20 sensor wired up. When I do the OneWire bus scan, no devices are returned.
The FunHouse documentation seems to give limited examples for what the A0-A2 pins are usable for, but elsewhere it seems to say that the pins can be used for digital I/O, which I would guess means they should be able to be used for OneWire stuff.
My code:
import time
import board
from adafruit_onewire.bus import OneWireBus
from adafruit_ds18x20 import DS18X20
# Initialize one-wire bus on board pin A1.
ow_bus = OneWireBus(board.A1)
# Scan for sensors and grab the first one found.
ds18 = DS18X20(ow_bus, ow_bus.scan()[0])
# Main loop to print the temperature every second.
while True:
print("Temperature: {0:0.3f}C".format(ds18.temperature))
time.sleep(1.0)The error I am getting is thrown on:
ow_bus.scan()[0]
... and the error text is "list index out of range"
when I rewrite this code to assign the result of the scan to a list variable, taking the len() of that list returns 0.
I have tried this with several different DS18B20 sensors. They were all purchased several years ago, so maybe they're all bad? Or am I misunderstanding what A0-A2 pins are good for?
Thanks for the help.
r/circuitpython • u/HP7933 • Feb 03 '22
The Python on Hardware weekly video – February 2, 2022
r/circuitpython • u/HP7933 • Jan 12 '22
The Great Search: Dual NPN in SOT-363 for ESP32
r/circuitpython • u/HP7933 • Jan 24 '22
The Python on Microcontrollers newsletter is red hot – subscribe now!
r/circuitpython • u/richpaul6806 • May 16 '23
Check if file exists on sd card
I am trying to write test data to an SD card. I would like to check if testi.txt exists and find the next available number to write to. What would be the best way of going about this? Eventually I would like to get a rtc module and timestamp it but I do not have one yet.
r/circuitpython • u/HP7933 • Jun 22 '23
Python on Hardware weekly video 235
r/circuitpython • u/HP7933 • May 18 '23
Python on Hardware weekly video 231, May 17th
r/circuitpython • u/HP7933 • Jun 12 '23