Search found 9 matches
- Sat Dec 04, 2021 8:01 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Defining a pause with a servo for a robotic arm
- Replies: 0
- Views: 4995
Defining a pause with a servo for a robotic arm
Hello everyone, I'm attempting to control a group of servos using MicroPython and the Pico. I have this code that I found online using a PCA9685 servo controller board and would like to add a definition to pause a servo during movement but not sure how to do that. I have a robotic arm that I'm contr...
- Mon Nov 08, 2021 11:27 am
- Forum: Raspberry Pi microcontroller boards
- Topic: VU Meter
- Replies: 0
- Views: 807
VU Meter
Hi all,
I would like to build a VU meter using a Pico along with a MAX4466 microphone and using an LED bar. I'm having a difficult time trying to get analog readings from the microphone through the ADC pin. So far nothing I've tried works. Any advice would be greatly appreciated.
I would like to build a VU meter using a Pico along with a MAX4466 microphone and using an LED bar. I'm having a difficult time trying to get analog readings from the microphone through the ADC pin. So far nothing I've tried works. Any advice would be greatly appreciated.
- Sun Oct 24, 2021 7:29 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Using Chinese fonts with an ST7789 display
- Replies: 3
- Views: 2357
Re: Using Chinese fonts with an ST7789 display
Thank you! I will take a look and give it a try.
- Thu Oct 21, 2021 10:42 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Using Chinese fonts with an ST7789 display
- Replies: 3
- Views: 2357
Using Chinese fonts with an ST7789 display
Hi all, I'm interested in getting Chinese characters to display on an st7789 display but haven't I figured out how to do it yet. I have no problem printing out text in English. I'm using the following drivers with the Pico [/url]https://github.com/russhughes/st7789py_mpy[url]. I'm assuming either I ...
- Sun Jul 25, 2021 2:28 pm
- Forum: General Discussion and Questions
- Topic: Different time settings under the same loop
- Replies: 6
- Views: 2264
Re: Different time settings under the same loop
Apparently I really need to play around with the code before I post anything I just cleared timers back to Timer() and that did the trick.
- Sun Jul 25, 2021 1:56 pm
- Forum: General Discussion and Questions
- Topic: Different time settings under the same loop
- Replies: 6
- Views: 2264
Re: Different time settings under the same loop
I have one additional question. How can I set up a second timer? I tried to see if I could create another one but it seems like I'm not doing it correctly by typing this. I get an error message. tim1 = Timer(1) tim2 = Timer(2) def tick(timer): moisturepower(True) time.sleep(1) if moisture.value() ==...
- Sun Jul 25, 2021 12:00 pm
- Forum: General Discussion and Questions
- Topic: Different time settings under the same loop
- Replies: 6
- Views: 2264
Re: Different time settings under the same loop
Ah I think I figured it out. I added this to the code and it seems to work :) Thanks again for pointing me in the right direction. tim = Timer() m = 60 h = 60*m downtime = m def tick(timer): moisturepower(True) time.sleep(1) if moisture.value() == 1: pump(True) time.sleep(water) pump(False) moisture...
- Sun Jul 25, 2021 11:33 am
- Forum: General Discussion and Questions
- Topic: Different time settings under the same loop
- Replies: 6
- Views: 2264
Re: Different time settings under the same loop
You can set up timers which call at regular intervals a function for doing what should done. Set the class machine.Timer. https://docs.micropython.org/en/latest/library/machine.Timer.html?highlight=machine%20timer These timer have to set up once and works completely independent from other tasks. Th...
- Sun Jul 25, 2021 10:23 am
- Forum: General Discussion and Questions
- Topic: Different time settings under the same loop
- Replies: 6
- Views: 2264
Different time settings under the same loop
Hello all, I'm very new at using Python/MicroPython and currently have a Raspberry Pi Pico connected to a 3 channel relay. This will be used as a indoor plant watering system with an LED lamp. The code I pieced together is set to cycle every 12 hours checking for dryness before turning on the water ...