Forum Replies Created
Yes: outputs A,B,C and D have a built-in series resistor to keep the current within the absolute maximum in case of short-circuit. This also means that LEDs can be connected directly. Typically, you get 10mA output.
Hope your Code Club has fun with them!
An LDR can be connected to any of the I/O pads (A,B,C or D). If you are using Sparkle commands, though, the Sparkle needs to be connected to D so then one leg/pad of the LDR would be connected to A,B or C and the other to a “+” pad (this could be on the battery box or the “+” output on the right-hand side of the Sparkle).
When the LDR is exposed to light it allows the current to pass through it to the I/O pad (the input will be “high”). When the LDR is covered no current flows and the input is “low”. A diagram of the set-up and example program are attached.
Let me know if any of this doesn’t make sense!
Attachments:You must be logged in to view attached files.
Could be. There is more info here about rechargeable batteries.
What is your program controlling? Sparkles?
Hi, sorry for the delay in getting back to you!
In the photo you attached it looks like the battery box is wired to the Crumble backwards: positive-to-negative and vice versa. This shouldn’t have damaged the Crumble as it has internal protection, but it would explain why your motors & sparkles are not receiving power.
Please let me know if it still doesn’t work after switching the leads round!
A Sparkle with just a faint red glow indicates that “-” and “D” are attached, but not “+”. i.e. it is not getting power. I would recommend ensuring you have good contact between the battery pack and the Crumble and between the “+” pads of the Crumble and Sparkle. Or you might need fresh batteries.
Let us know if this doesn’t help…