Week 18: Project development
The Plan A
The smart fab
The queretaro Fablab were i work at works inside an university campus and people from diferent backgrounds have access to the machines in our laboratory. It is called the printing laboratory i'ts a place where Students, Teachers, Former students and Administrative staff can make their personal projects and educative props and only the costs of the materials are counted we have a recorded history of the uses per machine on an excel spreadsheet where we input the internal ID for each person as well as Name, Area, Machine used, and Material Cost.
but it is quite tedious for one person to keep track of all the uses on the machines so in order to improve this my final project aims to automaticly log the use per machine registering it to the internal ID the university gave to each user we all have one ID badge where is printed a unique barcode and have a rfID chip as well.
id'like to avoid creating a new database for this project so instead i'll have to learn to use the mySQL internal database that already exist with the personal info for every user registered on campus
the goal is to atatch a magnetic 3 phase contactor controlled by an atTiny digital output and a relay to feed the magnetic contactor coil
so, in this page my goal is to post my project management scheme in steps to follow
- 1.-Create a sketch of the general design
- 2.-Create a bill of materials to use
- 3.-Design a good housing for the electronics and the wiring
- 4.-Program an attiny44
- 5.-Make a pcb with a push button and a LED and make it blink with the atTiny whe the button is pressed
- 6.-Make a relay PCB with some headers and use it to turn a light bulb using the atTiny button PCB
- 7.-Attatch a rfID shield to the atTiny board and read some ID's to get the data out of them
- 8.-Control the light bulb using the rfID data without the data base just granting acces with the data of the code
- 9.-Integrate the mySQL database locally on a pc attached to the atTiny to read data from the database and control the light bulb
- 10.-attatch a wifi shield to the atTiny board to read the mySQL data base from a locally served host with a static IP
for the first part i will be using handmade sketches i've drawn over the course of my fabacademy experience
this one is hosted on my flickr page from the first week this is just a doodle i did about the objective of the project
The plan B
The Smart Curing Station
so in this Plan B project i intended to use as much fabrication methods as i could.
what skills will be involved in the process?
drafts and sketches
of course i've being doodling arround the idea thinking what i may need for making this project
as well as a sketch of an android app that this will need (i tought it could be really fun to teach in a classroom).
so i will begin this by saying that i have been working on the electrical design of thw board i'm that good with electronics yet but i think that this pcb design is good enough to begin to debug some electronic and programming issues
This is my eagle schematic for the control board
and This is my eagle board file for the control board as well.
the first issue i had was that i choose to use the Atmega328p. But i could not find the block for the microprocessor within the eagle default libraries.
so i had to download the sparkfun_microcontroller library from the library manager in eagle.
Next i wanted to use headers but since i only had wires with me and all of the routing will be inside the machine i supposed that will be ok to solder wires direcly into the boards. But that lead me to the next issue that was finding the right pads for soldering wires and have enough copper pad to solder to.
so i decided to use a plethora of pads i found. after doing all of the routing on eagle this was the final result.
But here i noticed that i could not hide tha letters inside the holes of the pads for the wires. so i used illustrator to prepare the files and this was the result.
so i added the name of my final project and my name just to customize it a little.
then i went to fabmodules.org to create the toolpaths and here i used some settings i knew was working on the SRM-20 when i did the FabISP board back on electronics production week.
so i was sure this would work.
at first sight all seems ok so i went and saved the file. Then i used this carbide mill bit of 0.2 mm instead of the 0.01in that i used to create
the diference is just 0.054mm so i figured that it would not be a problem so i loaded the file (.RML) on the SRM-20 and start milling it.
when finished i took it out from the machine to inspect the a little closer. Here is were i noticed that this milling bit is definitly supperior from the the first bit i used on electronics production week.
But it seemed that the spaces between the microprocessor pins were ignored.
zoom on the microprocessor pins
at first i tought the mill bit was wrong. But then i realized i did not double checked the toolpath in detail.
So i went and load again my settings on fabmodules and look at this.
i look that fabmodules is ignoring the space between the chip pins. i do not know why this is but i belive that has something to do with the size of my board.
Thanks to my instructor ivan hernandez for answering all of my questions today i could solve this.
but i did not use fabmodules again .tough ...i used a software called imodela creator. Wich is a simple software created by roland to use some simple operations with the modela. Here you can draw simple shapes or import an image and extract it's contours.
so that's what i did and then i noticed that here i could compensate the diameter of the milling bit and when selecting cut you can not play with the settings enough or so i tought before i click on milling parameters. Here i could twitch the settings for the bit i was using.
at the end i had to plunge the Z origin -0.06mm inside the material in order to get a clean cut. it seemed to be a little diference in precission between fabmodules and i modela creator but it maneged to get the job done.
and got rid of the copper that was on the first board.
here is where i had yet another issue. it seemed that i choose good sized pads and wrong sized pads for soldering the wires.
i used a dremel tool in order to bore the holes into the board but had some troubles with doing so even with magnifying glass and all.
and here is where i left today
NEW ENTRY 27/06/20
i got stuck for a long time with the electronic debugging the board but after four versions a lot of coffee and some help of my lab instructor finally i'm able to load programs into my board now i used an arduino uno and the IDE and i documented on the assignment on embedded programming week HERE you can see what i did to load a basic blink program on the atmega 328p-TQFP chip of my board
i'm waiting to some materials to arrive to the lab for continuing on assembly and testing my app.
To be continued...
- >>1.1.- Chassis
- >>1.2.- Hinges
- >>1.3.- Housing
- >>1.4.- Shaft Coupler
- >>1.5.- Motor Bracket
- >>1.6.- wire router
- >>2.1.- Relay
- >>2.2.- Mainboard
- >>2.3.- Button Pad
- >>2.4.- Power supply
- 3.-CAM and ECAM Bloopers
- >>3.1.- Lasercutted
- >>3.2.- 3D Prints
- >>3.3.- Molding and casting
- >>3.4.- Electronics
- 4.- time strategy
- Links and references