Tag Archives: Programming

Multiplexed!

After taking a look into the technical aspects of our build we realized that the Arduino only has 13 outputs and we need 32. To over come this we have been researching a method known as multiplexing and charlieplexing. This approach allows us to regulate the 5 volts that the Arduino allocates to each pin on a clock to a number of LED’s using a shift register. Basically each LED is attached to one pin of the shift register and it is counting up to 8 bits and lighting each one incrementally. So fast that the eye can’t see the LED turn on and off. This is a very simplified explanation of multiplexing. Below is a video that goes into greater detail. below is an example of our attempt of using this method to light 8 LEDs from 3 Pins on the Arduino. We succeeded in doing this but it was very tedious and complicated with more the set up of electrical components over the programming aspect. With time constraints in mind we have decided to look into the Arduino mega.   Experiment Scridb filter

Continue reading →
Post Tagged with ,

Experimenting with Arduino

For the last couple of weeks Mikael Fernstrom has introduced us to the Arduino. We were given a basic kit consisting of the Arduino, Piezo sensor, a potentiometer, resisters, light dependent resistors and wires. Before we began attaching electrical components and programming the Arduino we were introduced to the fundamentals of electronics. We looked at measurements and schematics examples of a curcit layouts of different components e.g switches, capacitors, sensors etc. Once familiar with the logic of electronics the experimentation began. The first program manipulated the piezo sensor (normally a pressure sensor) to play a melody. Following that we re-appropriated examples given by the Arduino programming environment. e.g. to accept analog inputs and outputs, to change the LED blink rate using the light dependent resister and to change the LED blink rate using the potentiometer as a dimmer switch. Scridb filter

Continue reading →
Post Tagged with ,