WEEK 12: OUTPUT DEVICES



GROUP ASSIGNMENT

MEASURE THE POWER CONSUMPTION OF AN OUTPUT DEVICE

We decided to find the power usage of motor drivers on various DC motors because one of our projects is about motor driver circuits. On that initiative, we take current measurements.


The input voltage is 12 volts.


The current drawn by a simple DC motor is 89.2mA.


A simple DC motor consumes 1.06W watts of total power.


The current drawn by a DC gear motor is 165.4mA. The total power consumption of DC gear motor is 1.884W..



INDIVIDUAL ASSIGNMENT

WORKING ON FINAL PROJECT

My local instructor suggested to me that before going to PCB designing of your Final Project you must implement your Project on the Vero board and observe the desire results. I just cut the big size Vero board then soldered the 8 Red, 7 Green, 2 Blue, and 2 Yellow LEDs with 100 Ohm reistor on the Vero board. Now, for Programming I used my Satshakit board which I designed as in WEEK10..

There are a total of 19 leds. For analog and digital display, 2 leds will be connected directly to the board's vcc and 17 will be wired to the board;s analog and digital data pins.


100 ohm resisters are connected with resisters in series.

328p microcontroller board is used that I made in this input week. I soldered wires directly from the Arduino's header pins towards the output leds. Here, switch is used for On/Off the power of 3.7v Battery.


MAGNETIC INPUT

Hall sensor / magnetic sensor gets the magnetic inforamtion and converts it into the Electrical signal. When the magnets move closer to the sensor, the 17 leds are turned on as an output and receive an input signal from the hall sensor. Unfortunately, two pins of my Board are not working internally.


TESTING THE PENDULUM CLOCK:

I made the Whole circuit in Input Now, I am using a 12v dc motor to connect the led strip with it.


Hall sensor "44e" is used for magnetic input and "5mm" led is used for Output.

CIRCUIT BOARDS

First of all the system is based on two circuits one is 328p and other is led strip which is connected with 328p microcontroller Board with the nuts and screw after making holes on both boards. The main circuit is 328p Board I made changes in SATSHAKIT and milled the circuit then soldered it with electronic components and main 328p Ic. After that burn botloaded the circuit. Now, Board is ready for Programming and connect it with 17 output pins of the Board. from D3 to D13 and A0 to A5. D2 is used as the Input.

This is the schematic of the SATSHAKIT which I am using as a microcontroller for Pendulum clock.

This is the circuit Board here I can directly connect the FTDI cable for Arduino Programming In the Board.

<

BILL OF MATERIAL

These all components are from satshakit component list.


This is my final project Board. Here I made changes in SATSHAKIT that FTDI cable can be directly connected with this Board.


LED STRIP

PCB Designing for led strip board all the steps are shown in above gif.


Traces for led Strip circuit.


Milling process of the led Strip. Here, I used paper tape because copper sheet was not flate so, for making it straight I used paper tape tightly to hold the sheet.

After milling and cutting circuit is ready for soliding


CUTTING THE VENYL

I cut the venyl paper for my led strip board to paste it on negative size for having a nice look and black backgrouond.

I pasted Vinyl on the Led Strip Board.

Solder the leds to the led strip board.

I made the holes on both circuits and compined both circuit with screw and nut then Soldered it with Arduino and led strip with wires.

3.7v 1000mah Lithium Ion Battery is attached to the circuit for powering the Arduino Board and led circuit.

SOLDERING AND WIRING

I soldered the wires from Arduino header pins to the LED Strip headers.


CODE

uploading code for pendulum clock



EXPLANATION OF CODE

Initilizing the characters, float, integers and string.


Initlizing the ports.


Initlizing the ports.


Reading the data from the sensor


Initializing the pins and applying if else coditions.

Calling the function for minute, Second, hour marker needles.

Updating the time with regards to previous time.

Serial Communication when data is transmitted from transmitter then it received.

CHECKING THE 328P BOARD.

Hall Sensor gets the magnetic Input and convert it into the Electrical Signal.

DEMO

There is the frequency issue while making the video in mobile so, I have to resolve that issue.






Propeller Led Pendulum Clock by Engr. Rashid Ali is licensed under Attribution-ShareAlike 4.0 International


Download all files from here