TENTH WEEK ASSIGNMENT |
|||||
INPUT
DEVICES
|
|||||
This assignment gives us an opportunity to survey the different electrical variable sensors.
|
|||||
---|---|---|---|---|---|
An current clamp sensor is tested to a current of 10A, confirming its linearity.
|
|||||
Electric current sensor. This is a breakout board for the fully integrated Hall Effect based linear ACS758 current sensor. The sensor gives precise current measurement for both AC and DC signals. The current sensor outputs an analog voltage output signal that varies linearly with sensed current. 40 mV / A This current sensor enables you to monitor currents in my project. Specifications: -Operating Voltage(analog): 5V -Peak Measuring Voltage:3000V(AC),500V(DC) -Current Measuring Rang:-50~50A -Sensitivity:40 mV/A -Operating Temperature: -40~150°C -Dimension:34x34mm . | |||||
An electric current sensor is tested to a current of 20A, confirming its linearity. | |||||
|
|||||
WORKING WITH A MAGNETIC FIELD | |||||
For
this assignment, I worked with a magnetic field sensor which delivers
signal through analog input to ATtiny45 microcontroller. 1. For this assignment, I decided to use a magnetic field sensor. 2. I decided to use ATtiny45 microcontroller, and connect a current sensor which delivers signal through analog input to ATtiny45 microcontroller. 3. Downloaded the images in PNG format, for its use on the Modela. |
|||||
In the process of milling the card I used the MODELA machine with the configuration shown in the picture |
|||||
A card with the magnetic sensor and another one with terminals for connection of external sensor. Traces and interior. |
|||||
Setting the type of microcontroller programming Connecting the ISP to the card and download the program. The program used is what gives the reference Fab documentation. hello.mag.45.c |
|||||
PYTHON |
|||||
Now
the card is programmed, the data must be sent by the sensor and
displayed on the PC. This stage will make the Python program. In the modified card (without magnetic sensor), I connected the current sensor and also could display the value on the PC. This test is performed with laptop Fab because they had the Python program installed. Open a terminal and type these lines: Python hello.mag.45.py / dev/ttyUSB1 Files here: hello.mag.45.py |
|||||
The visualization was done in Python and it worked perfectly! | |||||
ASSIGNMENT COMPLETED! |
|||||
Some Conclusions?
|
|||||
<== PREVIOUS - - ASSIGNMENTS - - NEXT ==> | |||||