Pics can be programmed in circuit. All of the boards I have made have the six pin header that enables this.
You can also program then on a solderless breadboard if that is what you are using.
Bob
Phones charge at between 1/2 to 2A. You cannot put this current through the LED.
You need a small resistor in series with the charging circuit, then a comparator to detect the small voltage it develops when the phone is charging.
Bob
]
Assuming you mean 680K and not 680Ω, your calculation appears to be correct.
The datasheet says that it holds off for a while before checking the termination conditions. It sounds like it terminates as soon as it starts testing, which means one of the conditions is true right away.
I would...
How are trying to detect that a phone is charging? The two switches are simply in series with the LED, but show us the circuit you are trying to use to light the LED only when a phone is charging.
Bob
Did you calculate RB1 and RB2 correctly? They should divide the battery voltage by a factor of 7.5 since it is expecting Vbat to be the voltage across 2 cells.
I don't see anything in the datasheet about what kind of thermistor to use and what values for RT1 and RT2. How did you come up with...
No, I was just commenting on the size of an array that would have 1000 (actually 1024) actuators.
If this is just intended to display a surface, I wpuld do it with computer graphics, possibly coupled with a 3D viewer.
Bob
That was fun.
On my iPhone, sitting in a crowded MacDonald’s, I can’t hear the 128 sine wave until I put the speaker right ip to my ear. The square wave is quite audible though.
Bob
If you have nothing plugged in to the other inputs, you should get near full volume. If you don't, the amp's input impedance must be unusually low. If that is the case, you will need a gain stage.
Bob