Electronics > Projects, Designs, and Technical Stuff

Borderlands style jewelry box research thread

<< < (8/17) > >>

Youkai:
I revised my drawing. Made a couple custom components to help me out.

* I included the RGB LED strip and the transistors/resistors into a component.
* Made a component of the Photo-transistor switch with the 3-wire setup.
* Made a stupid simple "Servo" because I couldn't find one in the components.
* My button has a built in LED/resistor which is independent of the switch (4 wires) so I made that a component too.
* I just used a stock multi-pin component for the Arduino. I might make a custom arduino component in the future so I can actually plan the wire placement.
Diagram is still missing the Buck converter. Also The arduino isn't going to have enough PWM pins so I'll need to include a PWM chip at some point. Probably something else I'm forgetting but I think it's pretty close to complete.

Please review and provide feedback on the diagram. I'm sure I'm breaking all sorts of best practices. Thank you!

Youkai:
I think this is a complete schematic at this point. I'd really like some feed back. Primarily I have read that the TLC5940 can't handle that much current. Is there any reason to believe running this setup will burn out the chip?

I'm using Yellow as my positive wire color because I have RGB LED's and I want the led wire to be the color of the LED. Other than that the wire colors don't mean anything.

EDIT: Haha. I'm an idiot. The "Sensor" data pins need to go to the Pro Micro. Not to the TLC. Updating the diagram.

Youkai:
Found the issue with the sensors. Also found I was missing a wire for the button. This diagram has the updates.

Ian.M:
I think its going to be sub-optimal running both the LEDs and the servos from the TLC5940, as that will cause excessive flicker.  A Futaba compatible servo signal requires a 50Hz repetition rate, and as the TLC5940 PWM timebase is common to all channels, that would force you to use 50Hz for the  LED PWM frequency.

As ATmega328P based Arduinos have six hardware PWM pins, you should be able to connect the servo direct to the Arduino so you can run the LED PWM much faster, avoiding any perceptible flicker.

Youkai:

--- Quote from: Ian.M on September 23, 2018, 07:00:49 am ---As ATmega328P based Arduinos have six hardware PWM pins
--- End quote ---

The Pro Micro uses a ATmega32U4 which only has 5 PWM pins. I guess I need to do a test with the TLC5940/Sevo/LED and see how noticeable the flicker is. If it's bad I will need to consider not having the fade effect, maybe it's better with just setting a sold color; or using my Arduino Uno instead of the Pro Micro since that has 6 PWM pins.

Is there any good way for me to know/see the PWM repetition rate for a pin? How can I tell if it's using the standard or the 50hz?

EDIT: I'm also reading this stuff about DCPRG and whether it should be tied to HIGH or LOW. I guess the difference has something to do with the EEPROM value of 63, or not. I really don't understand it though. Can someone give me the ELI5 version? Do I just tie it to GND and not worry about it?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod