“As a man I’m flesh and blood, I can be ignored, I can be destroyed,but as a symbol I can be incorruptible. I can be everlasting”. When the city runs into anarchy, we need a symbol, a symbol that brings hope into the heart of the helpless and innocent, a symbol that creates fear in the hearts of the criminals.
To bring the symbol to life, you must do your part. It’s not who you are underneath, but what you do that defines you. Batman is needed everywhere. Be the first one to call him.
This simple game needs two players two stationary cycles which you pedal. The faster you pedal, the faster you light up the array of LEDs. The first player to complete the circuit i.e. light up all LEDs of his colour wins. The LED array is controlled by two series of 7 TLC5916s each (One series per team). The pedaling is detected by IR sensors fixed to the base of the pedals of the cycles. The controller used is MSP430G2553.
Step 1: Gather the Components Required
- TLC5916 (14)
- MSP430G2553 (1)
- UA7805 (3)
- RESISTORS 1kilo Ohm(7)
- Solder gun and solder
- Berg strips
- IC bases - 14 pin (8)
- General Purpose Board (1)
- LEDs (2 colours)
- RIBBON CABLES (as many as needed depending on design)
- CONNECTOR PINS (8pin)(10)
- BICYCLES (2)
- IR SENSORS (2):
- A wooden board(1)
- GLUE GUN (1)
- DRILLING MACHINE (1)
- PAINTING TOOLS (black paint preferably)
- Any covering for sensors(ISOLATION) (white paper in our case)
- Cycle Stand(2)
- Metal rods 2.5 cm * 2.5 cm dimension(8 rods each of 2 metres)
- Metal piece(3 mm thick and 30 cm * 30 cm)
- Welding arrangement
- Code Composer Studio
Step 2: Making the Cycle Stand
The stand consists of mainly three parts: the base, the supporting bars and metal pieces for the grip. Each of these parts were made using hollow metal rods of dimension 2.5 cm * 2.5 cm(shown in the figure above). The length of each rod was 60 cm. 8 such rods were taken to design the stand. The rods were welded together to make all these parts.
- Take metal rods following dimensions: 2 rods of 55 cm (for length) and 2 rods of 40 cm (for breadth). A cutting tool was used for this purpose.
- The 4 rods were arranged in the form of a rectangle and were joined using welding metal(shown in the figure above).
- The resultant was roughly the same as shown in the figure.
- Take 4 metal rods of 50 cm each for making the support.
- Use a cutting tool to cut out the triangular pieces of metal to give the desired support pieces(as shown in the figure).
- Place each of the support pieces at 60 degrees to the rectangular base and then join them using the welding metal.
A metal sheet of thickness 3 mm was used from which the following pieces of metal were extracted using a cutting tool: 2 squares of side 6.5 cm and 2 rectangular pieces of side 8 cm * 5 cm.
- Use the square sheet to cover each of the 2 rods that originates from each corner of the rectangular base, so that those ends of the rod remain covered.
- Mark the dimensions(as shown in the figure) on the rectangular sheet. Use a cutting tool to cut out the desired portion.
- Place the cycle on this cut out portion of the stand.
Step 3: Race Track
We chose the racetrack to be shaped like a Bat.
- Take a wooden board of dimension 100 cm * 40 cm and drill holes for two array of leds(each representing a player).
- Use 112 Led each color to make the track.
- Short two-two leds together in order top reduce the number of connection. So in total we have 56 pairs each.
- Short the anodes of all the led and connect it to a 5V supply(at-least 1.5A).
- Connect the cathodes to the output of TLC5916.
- Use Ribbon cable to make the connection and glue it to make sure the connection wont come out.
At the end of the race, the winner’s array will lighten up completely and the other array will be completely OFF.
Step 4: Calculation of Distance Traveled
The objective of this project is to convert the rotating motion of the cycle wheel to proportional distance covered by the player. There are many possible ways of extracting this information.
Possible Methods of Calculating the distance traveled
- A Dynamo can be a possible choice as it extracts the speed of the cycle wheel. The distance traveled can be obtained by integrating the speed curve from initial to the current time 't'. This requires a lavish budget as we require two dynamos. This Process is complicated.
- IR(Infra-Red) sensor is another possible solution to measure the distance traveled. This can be done by placing the IR sensor beside the gear of the cycle in such a way that it is not disturbed by the foot of the player. The number of interrupts(cuts) captured by the IR sensor can be used to calculate the distance traveled. The gear of the cycle requires some alterations. Place a white paper on the gear of the pedal with black background such that the IR light is absorbed by the black background and reflected by the white paper. The output from the IR sensor is high when the light is reflected and low when absorbed.
We used IR sensors as they are cheap and easily available.
The LEDs are shifted when there are certain number of rotations of the wheel. Hence we shift the LEDs when the required number of interrupts(in our case 2) are sensed by the IR sensor. Hence the length of the track can be adjusted by setting the number of interrupts per revolution(number of black holes) or the number of interrupts per shifting of LEDs.
Step 5: Hardware and Control
The Flowchart of the Project is shown above.
On reset zeros are send to all TLC5916. Our program keep on waiting for interrupt from the IR sensors. A counter keeps track of number of interrupts received . As the counter reaches a value 2, Send_data() is called. This function sends a '1' to the TLC array.
How to send data to TLC5916:
The board and circuit are as shown above.
- The MSB of the data is sent first.
- The SIN pin is set high or low depending on the MSB of the data.
- The SCLK pin is pulsed (Sent high and sent low).
- The data is then shifted left once such that the second most significant bit becomes the MSB.
- Once all bits are transferred, the LATCH pin is pulsed once to send the data from the hold register to the output register.
- The output is then displayed when the Output Enable pin (Active low pin) is set to 0 on the pins O0 to O7.
- An external resistor is connected between R_EXT pin and GND to set the current in the output channel.
- To cascade two TLCs, the SDO pin of the first TLC is connected to the SIN pin of the next TLC with the SCLK, LATCH and OE’ pins of both shorted.
Step 6: Gallery
Please checkout our other Instructable LED WALL
Participated in the
Participated in the
Participated in the
Make it Glow!