sábado, 21 de mayo de 2016

Capacitor

This practice consists on measuring the charge and discharge of a capacitor and to compare it with it's theoretical result, using a DAQ (Data Adquisition device) and LabVIEW.

Materials needed:
-1 Computer with LabVIEW
-1 NI DAQ 6008
-1 Relay
-1 Capacitor (100µF)
-1 Transistor
-1 Diode
-3 Resistors (1 of 10k and 2 of 2700 ohms)

The first thing that we have to do is to do the theoretical calculations. We will calculate theorically how much time does the capacitor takes to be charged and discharged.

First of all, we have this formula, which represents the change of the voltage of the capacitor in function of the time:
Where:

Graph of Temperature

This practice consists on introduce in a graph the temperature of a day, read from a database. Moreover, we can modify the temperature of every hour of the day.

Materials we need:
-1 computer with LabVIEW and Microsoft Access

To do that, the first thing that we have to do is to create a database with the temperature of every hour in a day. In my case, do don't invent it, I took the values from this page:
http://www.accuweather.com/es/es/santander/306949/hourly-weather-forecast/306949?hour=46

Then, we have to introduce these values inside a database:

viernes, 20 de mayo de 2016

PT100

This practice consists on measuring temperature using a PT100, an arduino and LabVIEW.

Things we need:
-1 Computer with LabVIEW
-1 PT100
-1 Power supply
-6 Resistors (2 of 1k, 1 of 100 ohms and 3 of 1 ohm)
-Wires
-1 Arduino

To make this practice, the first thing that we have to do is to design the circuit that we will use to read the temperature. there, we will use the arduino to read the difference of voltage between A and B, like a Wheatstone Bridge.

jueves, 19 de mayo de 2016

Arduino

This practice consists on, using LabVIEW and Arduino, to make a program where:
-If I press the button D12, I read the value of the potentiometer A0.
-If I press the button D8, I read the value of the potentiometer A1.
-If I press the button D7, I read the value of the temperature.
-If I press the button D4, I change the value of a LED.

To do it, we will use the shield of MSE Bilbao. In this picture we can see the shield with the names of the parts that we will use:


In LabVIEW, we will create an VI like this. On the right side we can see a picture of the shield, the actions of the buttons and a button that when you press it, it appears a pop-up that tells the instructions of the program. On the left side of the VI we can see a button to stop the program an the value measured.

lunes, 16 de mayo de 2016

RTC

The aim of this practice is to simulate a Real Time Clock (RTC) in Proteus.

The first thing that we have to do is to make this electronic circuit in Proteus:


To don't focus all my efforts in unnecesary things, most of the parts of this circuit are explained in the previous I2C practice, so you can find out what are them in this link: http://marcoselectronicblog.blogspot.com.es/2016/05/temperature.html

The main difference with the previous practice is that here we use the DS1307 RTC:

domingo, 15 de mayo de 2016

Temperature

The aim of this practice is to use Proteus to simulate a digital thermometer with a DS1621 and print the temperature on a LCD screen.

To do that, we open Proteus in our computer and we create the next electronic circuit:


Where we have the next parts:

sábado, 14 de mayo de 2016

Blink

The aim of this practice is to switch ON and OFF two LEDs with our Raspberry Pi using Python3.

Materials:
-1 Raspberry Pi
-2 LEDs
-2 Resistors (1kΩ)
-Wires

To do that, first, we have to connect a LED and a resistor to the pins 17 and 27 of the Raspberry Pi. The end of the circuit will be in a pin of GND, also in our Raspberry Pi. We can mount it in a protoboard.

In the Raspberry Pi, we will open Python3 and we will write this code: