Lab Report On
Lab Report On
Open your Arduino IDE. Go to tools and change your Board to Arduino
Nano. Go to Port and select a port where your Arduino Nano is
connected.
Once done programming your Arduino, click the Upload button to upload
the codes to your Arduino Nano.
Light-emitting diode (LED) is a two-lead semiconductor light source device used for indicating
the output status by making it ON or OFF.
An LED is nothing but a p–n junction diode, which emits light when provided with power supply.
When voltage is applied to the leads of an LED, it forces the electrons to recombine with
electron holes within the device, emitting energy in the form of photons. This effect of emitting
energy in form of photons is called electroluminescent. The color of the light is determined by
the energy band gap of the semiconductor corresponding to the energy of the photon.
Using Arduino, Light emitting diodes (LED's) are handy. For that, connect a wire to digital pin 13
on the Arduino board, GND wire and VIN pin a voltage of 5v-9v. We get a constant or blinking
LED flushing as we need.
The Arduino Nano is a microcontroller(Atmel ATmega328) is an easy to use yet powerful single
board computer that has gained considerable traction in the hobby and professional market.
The Arduino is open-source, which means hardware is reasonably priced and development
software is free. This guide is for students anywhere who are confronting the Arduino for the
first time.
The Arduino project was started in Italy to develop low cost hardware for interaction design. An
overview is on the Wikipedia entry for Arduino. The Arduino hardware comes in several flavors.
This mini project covers the Arduino Nano board, a good choice for students and educators.
With the Arduino board, we can write programs and create interface circuits to read switches
and other sensors, and to control motors and lights with very little efforts.
Genarally, Arduino Board Inludes:
Programmer, Voltage Regulators Seral to USB Converter
The Arduino-Nano board features an Atmel ATmega328 microcontroller operating at 5 V with 2
Kb of RAM, 32 Kb of flash memory for storing programs and 1 Kb of EEPROM for storing
parameters. The clock speed is 16 MHz, which translates to about executing about 300,000
lines of C source code per second. The board has 14 digital I/O pins and 6 analog input pins.
There is a USB connector for talking to the host computer and a DC power jack for connecting
an external 6-12V power source, for example a 9 V battery, when running a program while not
connected to the host computer.
The Arduino programming language is a simplified version of C/C++. If you know C,
programming the Arduino will be familiar. If you do not know C, no need to worry as only a few
commands are needed to perform useful functions.
Code for Blink One
Arduino Nano
ESP 8266
Mini USB to USB cable
Generic bread board
Jumper cables (Male and Female)
Arduino or generic 3.3v power supply
Select the Arduino Nano board type by going to Tools > Board
Select the port that displays e.g com9
Add the WIFI_SSID and PASSWORD
Add the device_secret_key with your device secret key from the Wia Dashboard (the one
that begins with d_sk)
Sketch > Upload to send it to your Uno
Unfortunately if you try to power the esp from the nano the com port will stop working, to get
the Wifi module running you will need to power it externally. The easiest way to do this is to
use a second arduino, any will work you just need the 3.3v pin and the Gnd pin.
Arduino pins
3.3v --> Vin on esp8266
Gnd --> Gnd on esp8266
pin 10 --> esp8266 TX pin
pin 11 --> esp8266 RX pin
As the Arduino nano takes male jumper cables while the ESP 8266 requires female jumper
cables, a bread board can be used to make the connections. Its also useful as both the CH_PD
and VCC pins on the ESP 8266 require power
LAB-4 Using Raspberry Pie-2 as a CPU to the Computer
Step-1
Step-2
Step-3
Get a minimum 8GB class 10 SD card with a card reader. Insert that card
into the card reader and plug that to the USB port.
Step-4
Step-5
Wait for the write to be completed and it may take some minutes. So be
patient.
Step-6