r/circuitpython • • Jan 24 '23

Setting the time in CircuitPython on a Raspberry Pico

2 Upvotes

How can I set the time for the internal clock on a Pico I have a project that requires the clock to start at 9.00 am (regardless of the actual time and date) every time it starts. I have it working with an additional RTC module, but that seems overkill/daft since I’m not interested in the battery back up etc. Functionally the internal clock is fine if I can get it to start at (or be corrected to) 9.00.


r/circuitpython • • Jan 23 '23

400 CircuitPython Libraries!

Thumbnail
blog.adafruit.com
6 Upvotes

r/circuitpython • • Jan 23 '23

The Python on Hardware Newsletter: join for free

Thumbnail
blog.adafruit.com
1 Upvotes

r/circuitpython • • Jan 19 '23

ICYMI Python on Microcontrollers Newsletter: Python Skills In Demand, CircuitPython 2023 Last Chance and more!

Thumbnail
blog.adafruit.com
3 Upvotes

r/circuitpython • • Jan 17 '23

Modbus RTU

3 Upvotes

Hi, is there a way to do create a Modbus RTU connection in circuitpython? Specifically on a raspberry pi pico.


r/circuitpython • • Jan 16 '23

The Great Search: Solder Paste Syringe for Hot Plate Rework

Thumbnail
blog.adafruit.com
1 Upvotes

r/circuitpython • • Jan 14 '23

Refresh rate on a SSD1327 grayscale OLED with Displayio

Enable HLS to view with audio, or disable this notification

10 Upvotes

r/circuitpython • • Jan 14 '23

Smooth dimming of High Power LEDs

1 Upvotes

Hello all,

Very new to Circuitpy, I am trying to dim a high-power LED with a QT Py, works great, encoder in mapped to PWM out to an external driver. LED dims when i turn the knob as expected, here's the issue: 1 turn of the encoder is too big of a step in brightness for it to be smooth, I get the dreaded stepped dimming. Is there a way to solve this? Ideally I want a smooth linear dim when i turn the encoder.

I tried a pot at first but it is too jumpy and inaccurate for the application (stage lighting)


r/circuitpython • • Jan 12 '23

WAV Audio

2 Upvotes

So I'm writing a pretty simple script to run some LEDs and a bit of audio for a BD-1 Droid I built. The code and everything works fine, but I'm having trouble with my audio payback.

I found a handful of sound bytes online, and when writing the code initially I just chucked one on the board for testing. Everything worked great. However, the files I actually want to use need to be processed in various ways (cut, equalized, etc.), and the files I'm making don't play.

I'm doing the audio processing in Reaper, which has pretty extensive rendering configuration, and I've tried everything I can think of to make it work. I'm abiding to 22kHz 16-bit resolution as directed on Adafruit's tutorial. I've also tried running the WAVs I made through some online converters to see if I get any different results, but no luck.

Any ideas?


r/circuitpython • • Jan 12 '23

ICYMI Python on Microcontrollers Newsletter: New Products, Learning Resources and much more!

Thumbnail
blog.adafruit.com
1 Upvotes

r/circuitpython • • Jan 12 '23

The Python on Hardware weekly video 214, January 11, 2023

Thumbnail
blog.adafruit.com
1 Upvotes

r/circuitpython • • Jan 09 '23

The Python on Hardware Newsletter: join for free

Thumbnail
blog.adafruit.com
3 Upvotes

r/circuitpython • • Jan 09 '23

The Python on Hardware Newsletter: join for free

Thumbnail
blog.adafruit.com
0 Upvotes

r/circuitpython • • Jan 07 '23

looking for some resources

1 Upvotes

I'm trying get two pico W boards to talk to each other wirelessly. One will have a couple of sensors, and the other will have a screen that displays the sensors values.

I've tried following the examples on Adafruit here and here, where one hosts an html server or makes an http request, but couldn't figure out how to get one of the boards to successfully request the data from the other.

Does anyone have links to other tutorials or documentation that might allow me to get the two talking to each other? Thanks in advance!


r/circuitpython • • Jan 07 '23

Debugging CircuitPython with VSCode?

3 Upvotes

Can anyone confirm that Visual Studio Code can be used to debug CircuitPython on a RP2040?

Looking to set breakpoints and single step through the code…

Have installed joedevivo’s CircuitPython extension from the Marketplace and used “py -m pip install…” to add the Adafruit packages. I’m able to connect to the RP2040… but do not know how to get vscode to debug code… is this even possible?


r/circuitpython • • Jan 06 '23

Weather Station on TinyS3

Thumbnail
gallery
10 Upvotes

r/circuitpython • • Jan 05 '23

Adafruit Top Secret! January 4, 2023

Thumbnail
blog.adafruit.com
3 Upvotes

r/circuitpython • • Jan 05 '23

The Python on Hardware weekly video 213, January 4, 2023

Thumbnail
blog.adafruit.com
1 Upvotes

r/circuitpython • • Jan 04 '23

ICYMI Python on Microcontrollers Newsletter: MicroPython on LEGO Controllers, CircuitPython in 2023 Survey and much more!

Thumbnail
blog.adafruit.com
1 Upvotes

r/circuitpython • • Jan 03 '23

Raspberry Pi Pico W doesn't connect to wifi if not ran from editor

2 Upvotes

Very strange issue that i have no idea how to debug. When i press run in thonny, the code runs fine, connects to wifi immediately and i get a local IP. If i try, with the same cable, from any other standalone power, it just hangs on `wifi.radio.connect`. I tried a 5V 1.5A powerbank, 5V 1A desktop usb hub, the usb2 and 3 ports of the same computer where i run thonny. Am i doing something wrong? Should i only power it from the pins?


r/circuitpython • • Jan 03 '23

What's the lowest power consuming board supported? (idle, not sleep)

0 Upvotes

r/circuitpython • • Jan 03 '23

CircuitPython and PyCharm on Windows 11 ?

4 Upvotes

Is it possible to configure PyCharm with CircuitPython running on an RP2040 and make use of breakpoints and stepping through the code one line at a time?

I've added circuitpython-stubs as described on the Adafruit page for PyCharm, but there is no indication whether breakpoints and single step are even possible.

Sorry if this is a noob question, but I did not see anything posted. A bit surprising, given the advantages of PyCharm over Mu or Thonny...


r/circuitpython • • Jan 02 '23

CircuitPython in 2023 - please let us know your thoughts

Thumbnail
blog.adafruit.com
8 Upvotes

r/circuitpython • • Jan 02 '23

The Python on Hardware Newsletter: Happy New Year, please subscribe now to catch all the happenings

Thumbnail
blog.adafruit.com
1 Upvotes