Project

General

Profile

TestFirmware » History » Version 4

jaap, 2012-11-09 08:13

1 1 jaap
h1. TestFirmware
2
3 2 jaap
{{>toc}}
4
5 1 jaap
h2. Firmware installation
6
7 4 jaap
All software resides in our GIT repository (Hardware designs as well, by the way). Links to precompiled versions are outdated by definition, so you can take the GIT repository and upload it to your own MBED account to compile it, if you want. However, the versions linked here below should "work".
8 1 jaap
9
h3. Uploading
10
11
Uploading software to the MBED is done by copying the files below onto the built-in memory of the MBED, by connecting the MBED to your PC with the USB-Serial cable that comes with it. After copying the file, press reset on the MBED to start the file with the latest timestamp. To avoid confusion, remove older files from the MBED.
12
13
h2. Testing the board, outside laser
14
15
There's special firmware available you can use to test your soldered motherboard. We recommend you upload this first, to make sure your board works, before you connect it to your laser cutter. Testing works like this:
16
# connect power to your board (you can connect the lasercutter power supply for this)
17
# connect the MBED via USB to your PC
18
# upload the test firmware to your MBED, by putting this file on the MBED's drive:
19
 http://www.laoslaser.org/files/laos_iotest_board_LPC1768.bin
20 4 jaap
 source code is in repository: https://github.com/LaosLaser/Firmware
21 1 jaap
# Start a serial terminal program on your computer with these settings:
22
 comm parameters: 115200 baud, 8N1
23
# Reboot the MBED by pressing the RESET button on top.
24
25
Your terminal program should give you a text menu. Press the keys in there and use a '''multimeter''' to meassure the outputs mentioned. The keys of the I2C panel should be displayed back to you when you press them on the panel. 
26
27
|_.Keys||
28
|x|Turn Xstep on/off. Press twice for one step ahead, hold to move X motor|
29
|X|Turn Xdir on/off. Toggle to change X direction|
30
|y|Turn Ystep on/off. Press twice for one step ahead, hold to move Y motor|
31
|Y|Turn Ydir on/off. Toggle to change Y direction|
32
|z|Turn Zstep on/off. Press twice for one step ahead, hold to move Z motor|
33
|Z|Turn Zdir on/off. Toggle to change Z direction|
34
|t|Turn Ext step on/off. Press twice for one step ahead, hold to move Ext motor. Note that Ext Step is the same MBED pin as o1, so that's what shows on terminal!|
35
|T|Turn Ext dir on/off. Toggle to change Ext direction. Note that Ext dir is the same MBED pin as o2, so that's what shows on terminal!|
36
|1..4|Toggle outputs 1 till 4. |
37
|e|Turn Enable on and off (this is for all stepper drivers at the same time).|
38
|s|SD-Card: test if you can write a file to the SD|
39
|i|I2C test: Show text "hello world" on I2C panel and test buttons|
40
41
More tests:
42
* toggle the keys on the I2C display to see if they work. Result should be visible on the terminal and on the screen. 
43
* make a shortcut between GND and Xhome/Yhome/Z-/Z+ to test if the sensors work. Closing a sensor should turn of one of the lights of the MBED:
44
|Xhome|LED1|
45
|Yhome|LED2|
46
|Z+|LED3|
47
|Z-|LED4|
48
49
h2. Testing the board, inside laser
50
51
Instructions on how to connect to the HPC laser are available in [[Setting_up_electronics_and_network_for_the_HPC_LS3020]]
52
53 3 KalleP
h3. Connecting everything inside the laser (but not the laser-power yet!)
54 1 jaap
55
If all inputs/outputs on the board do what you expect, it's time to connect the board to your Laser. When you have everything connected, run the program again and see if all sensors and steppers work as expected. Be carefull NOT to connect the laser yet, as toggling 1..4 would turn on the tube!
56
57
h3. And then the laser
58
59
When everything works, you can connect the laser (laser on, pwm) as well. Be XTRA, XTRA carefull, wear protecting glasses while the machine is on as long as you haven't tested everything. Make sure "laser on" is connected to the board via the '''lid switch''', so laser power will always be off when the machine is open. Test this thoroughly before believing you did it right! If your machine does not have a lid switch, '''NOW''' would be a good time to add one!
60 2 jaap
61
h2. Installing the real firmware
62
63
If you're sure everything is functional, you can upload the real [[Firmware]].