To make (almost) anything

About Me Assignments Final Project Fab lab 2019
Output Devices
Individual Assignment

add an output device to a microcontroller board you've designed, and program it to do something

Group Assignment

measure the power consumption of an output device

Individual Assignment

This weeks assignment was to make a circuit that can control something i.e. output device. To combine this weekly assigment with my final project, the aim of this week is to make boad and connect RGB strips with it, and program it with different effects of lights.So fo this week assignment I decided to make Satshakit and took reference fom Daniel Ingrassia.
After redrawing so much controller boards in past weeks I planned in this week to make my own design, for this I want to make a board which is not only use in this week but kind of general purpose board for me.
I started with designing the board! .Satshakit is a 100% Arduino IDE and libraries compatible, fabbable and open source board, and also an improved version of Fabkit. I used ATmega328p .The ATmega328 is a single-chip microcontroller created by Atmel in the megaAVR family (later Microchip Technology acquired Atmel in 2016). It has a modified Harvard architecture 8-bit RISC processor core.Wikipedia

5 Terre

ATmega328

PCB Designing

For PCB designing I worked on Eagle 7.5 that I have been using since from Week4. First I made a schematic of board:

5 Terre

Schematic

After schematic I have generate PCB board and route it as we did in previous weeks .

5 Terre

PCB Board

Generating.Rml File
5 Terre

Export as Image

In the appearing window, I increase the resolution to 2000 dpi, click on monochrome, and click Ok.

5 Terre

Normal Seting

To edit the .png image, I Used Paint. I open my image in paint, and using the rectangular select tool, I select the image leaving some space from all the sides. After I press File and Copy the selected area. To continue working with the selected picture, I click again on File, and Create from the Clipboard
More detailed procedures can be found in my previous documentation Electronics Design week!

5 Terre

Trace

5 Terre

Outline

after making traces and outline of a pcb I used fabmodules to generate RML files of both traces and outline, all important settings are mentioned for detailed fabmodules settings visit Electronics Production Week

Milling and Soldering
Components
5 Terre

Components

Above list of components files i have generated from Eagle

.rml files are given to Roland SRM-20 for milling, 1/32 drill bit is used for cutting outlines and 1/64 bit drill is used to make a trace on a board and here is the result

5 Terre

Soldering

5 Terre

PCB

Programming the board

I am using Arduino IDE for programming my board. Before programming the board first it is required to burn bootloader in it. For setting up Arduino IDE to work with FabISP I mentioned in detail in Embedded Programming Week. I connect the arduino board to the USB. Under Tools select the right board, select Arduino as ISP USBtinyISP, double check the parameters, and press the Burn Bootloader button.:

5 Terre

Programmer

5 Terre

Selecting Board

5 Terre

Burn Bootloader

5 Terre

Done Burn Bootloader

After successfully upload and burn bootloader , now It is time to connect RGB strip WS2812B with board and program it to run differnet color effects

5 Terre

WS2812B RGB strip

Making Connections For RGB

Connect RBB strip address pin with Pin-6 of 328p board and connect supply pins VCC and Gnd with external source. I used five volatge adopter for external source

5 Terre

Connection

For RGB Led code I go to my local Instrcutor 2018 Student Noor Ahmed Pirwani webpage where he mention fastled library for RGB . I Used fastled Library for differnt patterns ,effects and upload it in my 328p board

5 Terre

Program

Group Assignment

In this week group assignment we have to measure power consumptions of an output device.I Have used Led Strip as output device So I measured power consumptions over a individul Led in strip.

As one of our project is on RGB LEDs so we decide to find the power consumption of RGBs on different color pattern We write some codes which blink 1 RGB with specific color and measure current on that project

5 Terre

Program For One Led

5 Terre

Voltage Across LED Strip

5 Terre

Current Across RED LED

The current is measured 47mA which is multiplied with 5 Volts is equal to 235mW

5 Terre

Pogram For Green LED

5 Terre

Green LED

5 Terre

Current

The current is measured 21.46mA which is multiplied with 5 Volts is equal to107.3mW. Same procss is used for other colors too.

It's all about this Week assignment

Click Here for Downloading this week files

This is all for this week

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.