Ow boy... what a week. We have to make two boards and also make them communicate! Gonna be fun!
I decided to make something very simple. A board with the button and it will light a LED on the second board.
So lets start with Eagle!
Design of boards
A Master board with button based on ATtiny45:
And slave board:
Making of the boards
Since I do not have an access to my lab , due to Covid lockdown, I will try to use a product from my company that I work at.
It is a ZMorph VX multi-tool machine.
I will use a FR4 board and gain a board by chemical etching and laser engraving. More of the process in following instruction!:
1st step is to paint the PCB boards with the black paint.
And place them on the machine.
Now lets make a gcode in dedicated software for the machine which is the Voxelizer.
But 1st I use verctorization module on mods to change the BMP output file from eagle into SVG, I will use those SVG files in Voxelizer.
OK now I import the files into the voxelizer:
After importing the file I need to set the settings for laser engraving. The laser will evaporate the paint leaving the paint of traces.
Settings for laser:
And the gcode looks as following:
With the gcode ready I can load everyting on the machine.
1st I use the double sided foam tape to fix the prepared laminated board on the machine's steel work table.
Lets charge up the lasers!!!
After laser engraving:
There are some cutted traces but I can correct them with black hightlither for PCB's.
Now cutting out of the boards:
Now last step is to etch the board in the acid (sodium persulphate). I mixed the crystalised sodium persulphate with warm water (max 50C deg) in one jar. Putted the ready PCBs in two separate jars and poured the mixture into them.
Now after eaching I have to clean the boards from the paint leftovers.
I cleaned the board with the alcohol... aaaaaaaaaaaaaaaand I failed... I left the boards for too long in the acid and some of the traces got eached too much :(
I will try once more as soon as I get new laminates, unfortunately due to covid stationary stores are close :(
Since I am not able to finish my task on self made PCB's I will make something simillar on Arduino UNO boards. But 1st I will make a simulation on Tinercad Cirtucs web app.
For communication I will use Wire protocol that bases on I2C communication. As always 1st I read the official manual on Arduino web page: https://www.arduino.cc/en/Reference/Wire
Lets build a circut!
I connected three Arduino Uno boards via wires on I2C (A4 and A5 pins). Two Arduinos have buttons, left and right button. Pressing the button on each side will send a message to the master arduino with LCD screen. The LCD screen will inform which button was pressed.
Each board need a code to work. There are to slave boards and one master board. The boards will send the sinal and master will recieve it. The master board will write on the LCD screen which button was pressed.
Code for the master board:
The code for the left Arduino is simillar with the change that it sends "l" to the master board.
Simulation works as shown on following video:
Time to build real circut.
Unfortunately due to wrongly connected wires I have burned the LCD screen and it is not communicating with the boards :(
The serial communication indicates that the communication between the boards works:
I changed the LCD screen into a simpler and more basic version, two LED's: