8. Electronics Production¶
Hero Shot!¶
Group Assignment¶
You can find more details on our lab site: Tech Works - Electronics Design
We worked on the Roland SRM-20 machine and used Mods.
Individual Part¶
First Step: Converting the Altium Design to PNG¶
Since I’m using Altium Designer, I followed these steps to export my design into PNG format so I could upload it to Mods:
- Press
Ctrl + P
. - Set the page color to mono.
- Hide any unnecessary layers. I hid all except the top layer.
- Right-click on the photo and select “Export to PNG”.
- Save the file as PNG.
Mods¶
Then I opened Mods:
- Right-click on the white screen and choose Programs > Open Program.
- Select Roland SRM-20 mill > mill 2D PCB.
- Upload the PNG file and ensure the DPI matches your original design dimensions.
- Choose mill traces.
- Adjust the offset number. I usually use between 3–4. If you want only the traces without unnecessary copper, use 0. In this design, I used 4.
- Press Calculate (make sure the WebUSB button is turned off to prevent immediate job start).
- Press View to check the generated toolpaths.
- Set the origin point to
X:0, Y:0, Z:0
. - After verifying everything, enable the option to save the file in
.rml
format and press Calculate again to save it.
The same procedure is followed for cutting the outline. Just make sure to choose mill outline.
CNC¶
Before starting the cutting process, a few preparations are necessary:
- Choose the correct tool — generally, one for milling the traces and another for cutting the board.
- Set the origin point for X, Y, and Z axes.
- Upload the
.rml
file and start the job.
Soldering¶
After I finished cutting my board, it was time to solder the electronic components.
The pictures below showcases my workflow:
Testing the built in led I made on my board
I also checked the leds using external power supply
this is the final result
Coding¶
This is the Arduino code that I used for this board
#define L1 26
#define L2 27
#define L3 28
#define L4 29
#define L5 6
void setup() {
// put your setup code here, to run once:
pinMode(L1,OUTPUT);
pinMode(L2,OUTPUT);
pinMode(L3,OUTPUT);
pinMode(L4,OUTPUT);
pinMode(L5,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(L1,HIGH);
delay(1000);
digitalWrite(L2,HIGH);
delay(1000);
digitalWrite(L3,HIGH);
delay(1000);
digitalWrite(L4,HIGH);
delay(1000);
digitalWrite(L5,HIGH);
delay(2000);
digitalWrite(L5,LOW);
delay(1000);
digitalWrite(L4,LOW);
delay(1000);
digitalWrite(L3,LOW);
delay(1000);
digitalWrite(L2,LOW);
delay(1000);
digitalWrite(L1,LOW);
delay(2000);
}