Anonymous

Project:YAAC: Difference between revisions

From London Hackspace Wiki
no edit summary
No edit summary
Line 1: Line 1:
----
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
----
=[http://uwujojedeh.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
----
=[http://uwujojedeh.co.cc CLICK HERE]=
----
</div>
Project maintained by Daniel Sikar ~/ dsikaratgmaildotcom.
Project maintained by Daniel Sikar ~/ dsikaratgmaildotcom.


Line 10: Line 18:
==== Overview ====
==== Overview ====


This is something I developed above the 20/20 Archery Club, at the previous London Hackspace address. It is based on three projects, the [http://dorkbotpdx.org/wiki/benito Benito 7], [http://www.makestuff.eu/wordpress/?page_id=569 Nanduino] and [http://www.pjrc.com/teensy/ Teensy]. You can run sketches on this device, though getting to burn actual code onto the YAAC is not as straightforward as with *real* Arduinos.<br>
This is something I developed above the 20/20 Archery Club, at the previous London Hackspace address. It is based on three projects, the [http://dorkbotpdx.org/wiki/benito Benito 7], [http://www.makestuff.eu/wordpress/?page_id=569 Nanduino] and [http://www.pjrc.com/teensy/ Teensy]. You can run sketches on this device, though getting to burn actual code onto the YAAC is not as straightforward as with *real* Arduinos.&lt;br&gt;
<br>
&lt;br&gt;
On the host side, for this specific project, I am running Ubuntu 10.04. It will probably run on other Debian based distributions without hickups. I don't know about Macs. I have burnt code on the YAAC running Windows Vista SP3 on the host, using the AVR toolchain - as per Benito 7 and Nanduino recipes. I don't know about running the Arduino IDE on Windows (TODO - find out).
On the host side, for this specific project, I am running Ubuntu 10.04. It will probably run on other Debian based distributions without hickups. I don't know about Macs. I have burnt code on the YAAC running Windows Vista SP3 on the host, using the AVR toolchain - as per Benito 7 and Nanduino recipes. I don't know about running the Arduino IDE on Windows (TODO - find out).


Line 77: Line 85:
== Software required ==
== Software required ==


* Arduino IDE - to compile sketches.<br>
* Arduino IDE - to compile sketches.&lt;br&gt;
* Teensyduino Arduino IDE addon - to list the Teensy on the Arduino IDE.<br>
* Teensyduino Arduino IDE addon - to list the Teensy on the Arduino IDE.&lt;br&gt;
* Teensy loader - the Teensy GUI, this actually needs to be running otherwise the Arduino IDE will not compile sketches.<br>
* Teensy loader - the Teensy GUI, this actually needs to be running otherwise the Arduino IDE will not compile sketches.&lt;br&gt;
* dfu programmer - to burn the actual code (hex file) onto the AT90USB162.<br>
* dfu programmer - to burn the actual code (hex file) onto the AT90USB162.&lt;br&gt;


=== Installation ===
=== Installation ===
Line 117: Line 125:
which should generate a list such as:
which should generate a list such as:


Bus 005 Device 002: ID 044e:300d Alps Electric Co., Ltd Bluetooth Controller (ALPS/UGPZ6)<br>
Bus 005 Device 002: ID 044e:300d Alps Electric Co., Ltd Bluetooth Controller (ALPS/UGPZ6)&lt;br&gt;
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br&gt;
Bus 004 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader<br>
Bus 004 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader&lt;br&gt;
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br&gt;
(...)<br>
(...)&lt;br&gt;


The YACC at this point should not be listed because the device needs to be reset first.<br>
The YACC at this point should not be listed because the device needs to be reset first.&lt;br&gt;
Push the reset button for 5 seconds (I count five elephants) then run lsusb again.<br>
Push the reset button for 5 seconds (I count five elephants) then run lsusb again.&lt;br&gt;


$ lsusb
$ lsusb


This time, all being well, an Atmel device should enumerate:<br>
This time, all being well, an Atmel device should enumerate:&lt;br&gt;


Bus 005 Device 002: ID 044e:300d Alps Electric Co., Ltd Bluetooth Controller (ALPS/UGPZ6)<br>
Bus 005 Device 002: ID 044e:300d Alps Electric Co., Ltd Bluetooth Controller (ALPS/UGPZ6)&lt;br&gt;
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br&gt;
Bus 004 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader<br>
Bus 004 Device 002: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader&lt;br&gt;
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br&gt;
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br>
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br&gt;
'''Bus 002 Device 003: ID 03eb:2ffa Atmel Corp.'''<br>
'''Bus 002 Device 003: ID 03eb:2ffa Atmel Corp.'''&lt;br&gt;
(...)
(...)


Line 142: Line 150:
=== Running sketches and generating hex code ===
=== Running sketches and generating hex code ===


At this point in time, Serial.print() does not work on this setup so there is not a lot of feedback from the device.<br>
At this point in time, Serial.print() does not work on this setup so there is not a lot of feedback from the device.&lt;br&gt;
At any rate, the sketches are run on the Arduino IDE, as per normal usage, piggybacking on the Teensy to make the Arduino IDE believe there is indeed a compatible device attached. This will generate a hex file in your /tmp directory. That is the code that needs to be burnt into the YAAC.<br>
At any rate, the sketches are run on the Arduino IDE, as per normal usage, piggybacking on the Teensy to make the Arduino IDE believe there is indeed a compatible device attached. This will generate a hex file in your /tmp directory. That is the code that needs to be burnt into the YAAC.&lt;br&gt;


=== Burning hex code ===
=== Burning hex code ===


From the prompt run:<br>
From the prompt run:&lt;br&gt;


  $ sudo dfu-programmer at90usb162 erase
  $ sudo dfu-programmer at90usb162 erase
  $ sudo dfu-programmer at90usb162 flash --debug 20 /tmp/build<...>.tmp/<filename>.cpp.hex  
  $ sudo dfu-programmer at90usb162 flash --debug 20 /tmp/build&lt;...&gt;.tmp/&lt;filename&gt;.cpp.hex  
  $ sudo dfu-programmer at90usb162 start
  $ sudo dfu-programmer at90usb162 start


103

edits