Instructables

Assemble a Super Mario Brothers Coin Block Lamp

FeaturedContest Winner

Step 11: Connect everything together and test

You now have all the important pieces ready to go, so let's finish it up and do our first power-on test!

First thing to do is prepare the power block. You should have a small USB male piece that should fit into the socket on the block. You can then attach a red and black lead wire into the ouside holes of the USB piece (see picture). Use a little bit of solder to keep these in place. Finally, use some hot glue to keep the USB securely in the block (you can also use super glue).

The speaker is the hardest piece to connect to the board, so let's do that next. It's located up and to the right of the microcontroller, marked SPKR (see picture). The left-hand pad (from the top of the board) is the negative (black) lead, and the right one is the positive (red) lead.

The wires are pretty fine, so they have a tendency not to stay where you put them. It's fidgety work one way or another, but one trick I've had some success with is:
- Unspool a little solder so its sticking out into mid air
- Grab one of the speaker wires, put it through the appropriate hole on the top of the board (copper side up), then flip the board over, holding the wire in place with one hand
- Pick up your soldering iron and touch it to the end of the unspooled solder, getting yourself a decent bead of liquid solder on the tip
- Apply the solder to the speaker wire and the board as best you can

This doesn't always work 100%, but you can often at least get a little solder ball onto the wire that makes it less likely to come out.

Next, let's connect the sensor plate. The sensor plate only has the one wire to connect, and it goes to the left of the two pads marked SENSOR below the microcontroller (see picture). Be careful not to mix up the sensor pad and the ground pad to the right! Put the sensor plate's wire through the hole and solder it from the bottom.

Finally, let's connect the power supply. Connect the red wire to the left hole in the connector marked POWER. The black wire connects to the right hole.

The last step is to insert the actual ATTiny microcontroller into the socket. Both the socket and the IC itself are marked so you know which way they go. On the socket, there's a little semicircular depression, and on the IC, there's a noticeable dot at one end. You want the depression and the dot to be facing the same way. The legs on the ATTiny are often just a little too wide to fit into the socket, so you can squeeze them inwards slightly between your thumb and forefinger. When you put the IC in the socket, make sure to push down firmly so that it makes good contact.

Hooray! You've completed the electronics portion of this kit. 

Once you're satisfied that everything looks OK, you can plug the 5V adapter directly into an outlet. If all is well, the LED array should turn on and then off, and if that works, try giving the sensor plate a touch. The lights should toggle on and off and the speaker should play sounds.
 
Remove these adsRemove these ads by Signing Up