FABACADEMY 2019

This page covers my process through the fabacademy, illustrating my progress, discoveries, failures, reflexions and inspirations.

Week 12

Link to the class content

Output Devices

Group assignment

My output device board need 12 Volts to turn on the motor attached to it and also there are another devices attached to it like the bluetooth and the limit switch I measure the current consumed just for my board then my boar with the motor and finally the boar with tall the devices attached.

To do that I had to connect the positive pin from the power supply to the positive pin from the multimeter then the negative pin from the power supply with GND of my board trough a cable after that connect the negative pin of the multimeter with 12V of my board trough a cable.

Design

Final project

Sketch Plan

For this assignment I design my output devices in relationship with the in-put devices so they can communicate with each other, for that I add the next items:

You can download the bill of material for the board:

Eagle

Schematic: this time creating the schematic view was more difficult than the previous times because this time I add more components than before. To know what components I will need for the stepper motor I use Neil's examples board and components as a reference.

For that I did the next process:

Schematic

Board: designing the board was easier than before but take me two days to create the connections between the components, because there were to many the most difficult part for me was to connect all of them, for that I returned to the schematic view and add some zero ohm resistor to use them as a bridges.

For that I did the next process:

Board

You can download the files:

PNG

To edit the files I did the next process:

Traces
Cut

Mods

This time I made 3 test before I create the final C-code because the milling cutter with sharp point that we were using breaks before I use it and I had to use a new one with a flat end. For the final C-code I use the next settings:

Traces / Cut

Machining and Soldering

Machining

Before I got my final board I did three test, the fist one with the new milling cutter with the previous configurations that we use but the result was pretty bad most of all the traces disappear, in the second and third attempts I try others milling cutters of 60 degrees that we have in the lab but they didn't work for me because the tip was damaged and the result was rough surface and some traces damaged.

Soldering

In general this process was easier than before at the beginning but when I finish and connect to my programmer the output micro-controller start to overheating so I had to use the multimeter to check if all the connections were ok, I realized that one capacitor was making contact with something that should not as well as some legs of my micro-controller. After debugging that errors my output micro-controller stop overheating.

Soldering

Programing

Arduino.

C-Code

Programing

You can download the files:



Testing the stepper motor.

Power consumption:

To feed my board with the desired energy to move the stepper motor I need 12 volts and for that I had to use a power supply, and for that I had to adjust the knobs of the positive energy (red) and the negative energy (black) until the display mark 12 volts, It was a little difficult to get exactly that measure so I just achieve 11.9 volts.

Problem:

The stepper motor didn't respond and also I the microcontroller is overheating slowly.

Testing the stepper motor

Debugging:

Goal: taking advantage of the creation of a new board for the week14 "networking and communications" I design a board that include both devices the stepper motor and a bluetooth and save time killing two birds with one shot.

Design: This time I decided to take as reference the hello.stepper.bipolar.44.board and also the board of Stéphane Muller who can achieve move the stepper motor in the regional review.

This time I'm using a ATtiny44A

PIN configuration.

Schematic:

Schematic

Board:This time I spend a lot of time making sure everything is all right and doing a good design.

Board

You can download the files:

PNG:

Traces
Cut

MODS: In the milling process I use a new milling cutter tool so I did two tests the fist one with a cut depth=0.06 and the second one with a cut depth=0.1 this two PCBs help me to set up the machine PCB for the machine design week where I use a cut depth=0.05 and the result was really good.

Traces / Cut
PCB

You can download the files:

Solder: This part take me all the day soldering the components more difficut to solder were the drivers because the bottom side need to be solder to the ground for that I use a heat gun and also the regulator because of the size.

Programing with the hello stepper bipolar 44 code: For this attempt I'm using the same code of Neil example and the board programed without any problem.

You can download the files:

Testing the stepper motor

I connect the stepper motor to my board and also the power supply and the voltage go down and the current go up I try for three times, the first one I see a sparkle and the last one a little smoke appear so I disconnect intermediately. I try to figure what's happening and connect my programmer to upload another code and I realized that the 5V regulator was overheating when it was connected to my PC trough the programmer.

After that I desolder the regulator and test if there are any wrong connection or even if VCC was connected to GND or if any component wast wrong connected after that I programed my board with another code.

Programing with the hello button code: I change some parts of the code that I use for the input devices week to test if the microprocessor is still working and after that I upload it. After that I solder again the regulator and is still overheating. Just to know if the code was working correctly I opened the arduino software and also the serial monitor and when I star to push the switch give us the desired answer.

You can download the files:

Finding the problem

After that I test the connections in the board and I realized that one driver burned because the motor that I was using is 2.8 Amps/phase and it wasn't the right one to check that I had to review the A4952 driver data sheet and I found that the output currents is 2A so I desolder the driver and solder a new one and change the motor to a KL23H241 that manage 1.0 amps current.

When my board is connected to my PC through my programmer the regulator is still overheating but when I connect directly to the power supply doesn't overheat.

Finally I fix the problem with my board and now it's working! :D

Button + Stepper motor + limit switch + bluetooth

I started searching in the fabacademy browser about stepper motors an I find Yue Siew Chin who says that was difficult to understand whats behind the C code he as same as me try to add a button to turn on the stepper motor he also is using the hello.button.45.c and the hello.stepper.bipolar.44.full.c to reach his objective and here is his code.

What I did is to understand Neil code and after that understand what is Yue doing then using his codes as reference I edit it to fit in to my project necessities.

Also I try to connect my limit switch attached to other board through bluetooth but at the first attempts didn't work. To fix that I add part of the hello.ftdi.44.echo.interrupt.c code.

I have to say tank you to Alex who is guiding us with the electronics and codding I learn a lot doing this in C code.

I did the next work flow: