CONDITIONAL DESIGN
HOME PAGE
ARDUINO
LIBRE GRAPHICS
DATA GATHERING & DISPLAY REMIX
Arduino is an open-source computer hardware and software which provides microcontroller-based kits for building digital devices and interactive objects that can sense and control objects.Arduino boards are able to read inputs such as a light on a sensor, a finger on a button etc
Within this workshop we focussed on a variety of aspects when it comes to programing the arduino to interact or control something. In this case we worked with LED and breadboards and was able to control and modify how the LED works by using the arduino software to code its activity. Displayed are two ways in which we got the LED working. Whilst taking part in the workshop, we discovered getting it to flash (or blink) by modifying the duration of the delay. If you look below you can see the codes I made and how the delay times vary as I wanted to experiment with how it works (the lower the number, the shorter the delay causing it to create a flashing motion).
ABOUT ARDUINO
THE WORKSHOP
Codes used to connect to the arduino hardware. I played with delay numbers in order to see its impact on the device


digitalWrite(led, HIGH);
delay(100);
digitalWrite(led, LOW);
delay(100);

As you can see I have changed the values accordingly.
Here the code has been adjucted when working with the breadboard as various inputs are used to make the arduno function

int lightPin = 0
int ledPin = 11

The coordinates used.
pinMode(13, OUTPUT);
In the main loop, you turn the LED on with the line:

digitalWrite(13, HIGH);
This supplies 5 volts to pin 13. That creates a voltage difference across the pins of the LED, and lights it up. Then you turn it off with the line:

digitalWrite(13, LOW);
That takes pin 13 back to 0 volts, and turns the LED off. In between the on and the off, you want enough time for a person to see the change, so the delay() commands tell the board to do nothing for 1000 milliseconds, or one second. When you use the delay() command, nothing else happens for that amount of time. Once you've understood the basic examples, check out the BlinkWithoutDelay example to learn how to create a delay while doing other things.
LED BLINK TASK (HOW IT WORKS)
setup()
loop()
pinMode()
digitalWrite()
delay()
AnalogReadSerial - Read a potentiometer, print its state out to the Arduino Serial Monitor.
BareMinimum - The bare minimum of code needed to start an Arduino sketch.
DigitalReadSerial - Read a switch, print the state out to the Arduino Serial Monitor.
Fade - Demonstrates the use of analog output to fade an LED.
ReadAnalogVoltage - Reads an analog input and prints the voltage to the serial monitor.
CODES TO CONSIDER WHEN USING ARDUINO
FINAL PROJECT