Need Code to Light up 12 LED Neopixel ring based on throttle position

Hi @alto777 . Noob mistake I made but the motor was being powered by the 3.3V Output on the board, I put the pin back in the 5V, now I believe it is staying constant, or only slightly changing speed with my pot.

EDIT: If I run a GND wire from Motor (Neg) to wiper in middle of pot, I can get the motor speed to change (Go slower, As LED's wipe upward from 1-12. Very touchy though, as if the range is too short, as in, the motor stalling out to motor max range, is from LED 2 (Higher Motor Speed) to LED 7 (Lower Motor Speed, stalls out)

I'm in transit, but can you try taking the motor out of the circuit and see if the on board LED does something plausible?

Did that LED change brightness with the original board and using it like it was designed, with the in boad control potentiometer?

If the LED does change from off to bright with no moto, the the problem may (still) be with delivering adequate power to to motor board with the motr hooked in.

If you can supply 5 volts from another source, to both the ring and the motor board, that might fix the current (and current) issue.

Common ground if you add a power supply...

a7

@alto777

Hi,
in reality I've been young longer than you....... :rofl: :rofl: :rofl: :rofl:

@alto777 @ruilviana Hi guys, just wanted to update you, I didn't get the motor to work with the LED ring, but it was enough to show the concept to people at the tradeshow, and it went very well! I really appreciate the help, and I will be on here in the coming weeks to try to get it fully operational. If you have any recommendation for any parts to order that will help me accomplish this task with cheap, simple parts that would be awesome. Please DM me so I can send you guys a bit of money for helping, cheers!

I was afraid you were in that plane crash Monday before the Tuesday where this thing was gonna premiere…

Now with some calm time (!) perhaps the place to start would be to get a real inexpensive DC motor control board meant for direct digital control via Arduino or other microprocessor logic signals.

The irony is that the Adafruit board has exactly the components and circuit arrangement that we were trying to hijack on the PWM board. I'll be left wondering why we couldn't get the idea to work.

If you need direction control as well as speed you'd need an H-Bridge style controller. The L289N will show up in searches, I only mention it so you can pick a better one, the L289N is old tech obsolete.

Pololu has some good stuff.

HTH

a7

Hey @alto777 , Luckily I was not in the plane crash! thanks for the info, I'll check out the links you mentioned and get some components ordered. Figure getting the device to operate as intended will help me with some experiments I'm doing. If things go well, I'll be developing this into a product at some point. I'll check back in later once parts show up and we can move to next steps if you'd like. Cheers :beers:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.