CEB Press/Manufacturing Instructions/Code Upload: Difference between revisions
Line 14: | Line 14: | ||
*On Ubuntu 12.04, open terminal with '''ctrl + alt + T''' then '''cd FOLDERNAME''' until you reach the folder that contains the "arduino" file, then '''sudo ./arduino''' to open the arduino IDE as a super user (you need to be a super user else the Tools>Serial Port will be greyed out). | *On Ubuntu 12.04, open terminal with '''ctrl + alt + T''' then '''cd FOLDERNAME''' until you reach the folder that contains the "arduino" file, then '''sudo ./arduino''' to open the arduino IDE as a super user (you need to be a super user else the Tools>Serial Port will be greyed out). | ||
*[http://blog.markloiseau.com/2012/05/install-arduino-ubuntu/ How to Install Arduino IDE on Ubuntu 12.04] | |||
= Compatibilizing Arduino IDE for Ubuntu 10.04 LTS= | = Compatibilizing Arduino IDE for Ubuntu 10.04 LTS= |
Revision as of 04:29, 5 October 2012
Tools
- Computer
- USB Cable
- CEB Press Electronics
Software
- Arduino Integrated Development Environment
http://www.arduino.cc/en/Main/software
- On Ubuntu 12.04, open terminal with ctrl + alt + T then cd FOLDERNAME until you reach the folder that contains the "arduino" file, then sudo ./arduino to open the arduino IDE as a super user (you need to be a super user else the Tools>Serial Port will be greyed out).
Compatibilizing Arduino IDE for Ubuntu 10.04 LTS
To run Arduino IDE successfully, you need to make sure that certain software is installed on your computer. For newer versions of Ubuntu, there are guides within the Arduino website.
- The following steps are a summary of the information in this webpage:
http://www.pluggy.me.uk/arduino-ubuntu/
- Open System>Administration>Synaptic Package Manager, then type your password
- In Synaptic Package Manager, search for jre, then mark for installation the item with the following name:
Openjdk-6-jre
- Note: marking these items will bring up other packages also to be marked. Click "mark" during these times.
- In Synaptic Package Manager, search for gcc-avr, then mark for installation the item with the following name:
gcc-avr
- In Synaptic Package Manager, search for avr-libc, then mark for installation the item with the following name:
avr-libc
- In Synaptic Package Manager, click "Apply"
- Restart your computer
Upload Steps
Note that you may have to rotate the sensors about their position for the CEB Press to function properly. The hall effect sensors within the sensor units must have the correct orientation with respect to the magnets. Use the CEB Testing Code, python GUI, and Arduino serial monitor to ensure that the sensor is picking up the magnetic field from movement of the magnets.
- Using the computer, open the Arduino Integrated Development Environment
- Within the Arduino IDE, click File > Open (a search box should pop up)
- Within the Arduino IDE Search Box, navigate to and click on the .ino file in which the desired code exists, then click Open
- Within the Arduino IDE, click Compile (if compiling failed, fix the code)
- Connect the computer to the Arduino microcontroller via the USB cable
- Within the Arduino IDE, click Tools then check Serial Port for a connection and check Board for the correct microcontroller board selection (latest board is Arduino Uno Revision 3)
- Within the Arduino IDE, click Upload and wait for upload completion
- Disconnect the USB cable from the Arduino microcontroller
Feedback and Troubleshooting
Please contact ykang404@gmail.com if you require assistance with this process or have improvements in mind.