Search found 7 matches

by drexxler
Wed Aug 13, 2014 1:01 pm
Forum: MicroPython pyboard
Topic: Controlling the output power of a pin (dimming external LED)
Replies: 15
Views: 15323

Re: Controlling the output power of a pin (dimming external

Okay, so time for a few new questions! The frequency is set back on 5 and I've adjusted the PSC down to 1 and there's absolutely no flicker, it's completely a ribbon. My question is, what are the drawbacks of this? Should I be expecting significantly increased power usage, or is the change unnoticea...
by drexxler
Wed Aug 13, 2014 3:19 am
Forum: MicroPython pyboard
Topic: Controlling the output power of a pin (dimming external LED)
Replies: 15
Views: 15323

Re: Controlling the output power of a pin (dimming external

Correct me if I'm wrong (as I know next to nothing about hardware programming, LED programming, and PWM) but PWM stands for Pulse Width Modulation, and so I'm assuming it's dimming the LED by sending gradually slower and slower pulses of electricity into the pin. If this is the case, wouldn't that b...
by drexxler
Wed Aug 13, 2014 3:12 am
Forum: MicroPython pyboard
Topic: Controlling the output power of a pin (dimming external LED)
Replies: 15
Views: 15323

Re: Controlling the output power of a pin (dimming external

I assume you mean the line pyb.Timer(pwm_timer_no).init(freq=5) in the pwm module? At 100, it doesn't work, the highest value that appears to work is 80, anything above and the LED doesn't turn on. I also don't notice any changes once I up the frequency. The lights are still flickering at the same r...
by drexxler
Wed Aug 13, 2014 2:06 am
Forum: MicroPython pyboard
Topic: Controlling the output power of a pin (dimming external LED)
Replies: 15
Views: 15323

Re: Controlling the output power of a pin (dimming external

Maybe I haven't fixed it. I'm curious now if this is a problem due to using the OUT_PP function, or if it's a problem with the LED/PWM setup. My problem is, when a color channel is set at anything less than 255, it's not a solid light, it actually has a flicker to it. When it's sitting still, it's u...
by drexxler
Wed Aug 13, 2014 1:31 am
Forum: MicroPython pyboard
Topic: Controlling the output power of a pin (dimming external LED)
Replies: 15
Views: 15323

Re: Controlling the output power of a pin (dimming external

Fixed it!

Seemed like I needed to still put the pyb.Pin.OUT_PP as the second argument to PWM. Awesome!
by drexxler
Tue Aug 12, 2014 11:03 pm
Forum: MicroPython pyboard
Topic: Controlling the output power of a pin (dimming external LED)
Replies: 15
Views: 15323

Re: Controlling the output power of a pin (dimming external

Thanks a lot! So I added the pwm module to my controller, and the contents are (I'm assuming this is the latest version) import pyb, stm #as pwm is configured 0-3.3v is 0-10000 # used to truncate to 0-255; # change if you need finer resolution RESOLUTION = 255 #for each pin name # list of possible p...
by drexxler
Tue Aug 12, 2014 8:42 pm
Forum: MicroPython pyboard
Topic: Controlling the output power of a pin (dimming external LED)
Replies: 15
Views: 15323

Controlling the output power of a pin (dimming external LED)

So I'm new to microcontroller development as a whole, but after seeing this nice introductory board on kickstarter I decided to give it a try since I love python so much. I'm trying to create a LED light show display using this board. I've gotten my hands on a few nice RGB LED lights, and I was able...