Amazing, what fun to play around with microcontrollers and micropython.
Thank you for the support!
Search found 4 matches
- Mon Dec 06, 2021 11:58 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Microcontroller adjusting voltage of laser module
- Replies: 5
- Views: 9295
- Sun Dec 05, 2021 4:32 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Microcontroller adjusting voltage of laser module
- Replies: 5
- Views: 9295
Re: Microcontroller adjusting voltage of laser module
I have found this code that works by fading the laser in and out. But I can't seem to find where to adjust the code and make the fade in and out slower. led = Pin(20) pwm = PWM(led) pwm.freq(1000) duty = 0 direction = 1 for repeat in range (2000): duty += direction if duty > 200: duty = 200 directio...
- Sun Dec 05, 2021 3:38 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Microcontroller adjusting voltage of laser module
- Replies: 5
- Views: 9295
Re: Microcontroller adjusting voltage of laser module
Thank you for your reply.
Unfortunately, the Raspberry Pico doesn't have a built-in DAC.
Although it has a built-in PWM. Would it be possible to create a sin-wave with the PWM?
Unfortunately, the Raspberry Pico doesn't have a built-in DAC.
Although it has a built-in PWM. Would it be possible to create a sin-wave with the PWM?
- Sat Dec 04, 2021 3:45 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Microcontroller adjusting voltage of laser module
- Replies: 5
- Views: 9295
Microcontroller adjusting voltage of laser module
Hi there, I'm a total newbie in the field of microcontrollers and MicroPython. I have a small project in mind in which I would like to make a laser module pulse very very slowly. Bringing up and down the voltage from 0V to 5V and back. The laser module is already connected to the controller. I can t...