Ok so c1 and c2 are eliminated.C1 and C2 are not needed with an integrated oscillator. However, there should be a decoupling capacitor near its power and gnd pins.
Can an ATMEGA I/O pin source enough current to drive 4 LEDs in parallel?
There are no GND connections on the schematic.
ak
I thought putting resistors on reduced current draw? I used this http://ledcalc.com/ to calculate using 4 leds and limiting their combined current to 40mA.there are LEDs that operate with different current
typical LED will be working in 10-20mA range.
suppose yours works with 15mA... there are 4 such LEDs driven from same MCU pin which means that PIN must be able to drive 4x15mA=60mA. this is significantly more than what digital circuits can handle, digital circuits are used as logic elements, not drivers. this means you need to consider either separating the LEDs so each is driven from another MCU IO pin (they can be controlled simmultaneously) or you need additional components to drive the increased loads (transistor circuits).
Seems like a job for an 8-pin MCU.I am willing to try anything, but my pcb enclosure is a 2.5 inch octagon 1/4" thick. This is what I am trying to replace in my product line.
Like this?You cannot run the circuit through a 10K resistor!
That will limit the max total current to BattV/10,000 and if it is 3.3V, then it is 3.3/10000 = 0.033 mA
There should be no resistance between the battery and the processor power supply pins.
The battery needs to be connected (via the reed switch) directly to the processor power pins. Then the 10 K resistor is from the +ve supply to the reset. You have the resistor in the wrong place.
That is what I am doing. I just paid for this to be designed and apparently that was the wrong step because everyone here is saying it is wrong. So who do I trust? The person whom I paid, or the people telling me it is wrong?While I totally appreciate your 'can-do' attitude, a word of caution is in order.
Since this object will be made in some quantity, with money invested, it's unwise to blast ahead without thinking this through a bit more.
While it seems simple, there are many subtleties waiting to bite you.
Take some time to think this through, create a clear detailed specification, pay someone who really knows this stuff to design it for you.
A friend of mine lost his shirt trying to manufacture a simple LED product with a quick and dirty approach, the customers loved the prototype, but 30% of the units did not work in the customers hands- he lost the customer, all the investment, and the opportunity.
A bad design from the start.
He used an arduino to create the program for the mcu. The arduino uses the atmega328p but my pcb is too small for that mcu so I am using the atmega328p-au instead. This is what the program does https://www.facebook.com/replicapropscom/videos/1694983457191508/If someone you paid is telling you to use a 28-pin $2 MCU like that for a product like this, pay someone else. You can almost certainly get along just fine with a 6-pin $0.40 MCU (and that's Digikey's single-quantity price) such as the PIC10F200. You don't need an external oscillator -- it has a precision 4 MHz internal oscillator that is almost certainly more than good enough for your needs. That gives you four I/O pins, one input for your switch and three outputs for your LEDs that are specifically intended to drive LEDs. Each output can source/sink 25 mA and all three can do it at the same time.
Yes- PIC10F200 is a far better design choice- fire your current designer.He used an arduino to create the program for the mcu. The arduino uses the atmega328p but my pcb is too small for that mcu so I am using the atmega328p-au instead. This is what the program does https://www.facebook.com/replicapropscom/videos/1694983457191508/
Do you think the PIC10F200 can be used instead to do what is happening in that video?
Sure.He used an arduino to create the program for the mcu. The arduino uses the atmega328p but my pcb is too small for that mcu so I am using the atmega328p-au instead. This is what the program does https://www.facebook.com/replicapropscom/videos/1694983457191508/
Do you think the PIC10F200 can be used instead to do what is happening in that video?
4 of each. That video I made was just to test the arduino sketch.Sure.
That video seems to have just one LED of each color. Your schematic has four.
What are your actual needs!