Pages

Saturday, April 20, 2013

Guzunty Pi's Arduino core studying notes


I read the Guzunty Pi Arduino core waveform article and learned that the core is RPi to use the ISP method to execute C++ programs in Arduino.  I think this is useful for the case of a barebone Arduino or ATMega chip on a GertBoard, which has no USB.  Because I have an Arduino with USB interface, I can just use USB and not ISP.

Furthermore, I think I can use PC Windows' version of Arduino IDE and also PC's USB to upload and execute programs in Arduino.  I think either Arduino USB or JTAG based ICP/ISP is not that powerful comparing to Netduino with Microsoft Visual Studio and C#.

So I think I will not use Guzunty Pi #4 for Arduino ISP.  Instead, I will use it for extra 4 digits of the 7-segment LED module.  


gz_arduino waveform -  campbellsan  2013 jan

https://github.com/Guzunty/Pi/wiki/gz_arduino-waveform

This core is programmed in a straight through configuration.

When sel is low, it passes the arduino programming signals, miso, mosi, sclk and rst straight through from the equivalent pins on the Raspberry Pi. When sel is high, rst is high and the miso, mosi and sclk signals are tri-stated.

From the perspective of the Raspberry Pi, this design works exactly the same way as programming the ATMega chip on a Gertboard. See Gordon Henderson's most excellent tutorials here.

This core was tested using what is called a bare bones arduino. The diavolino is less than $12. It has no power supply, and no USB interface. Neither of these is a problem for this design. You can take 5 volt power from the GuzuntyPI board and the ATMega328P is programmed through the in circuit programming interface (ICSP). Communication with it is possible through SPI using the same core by moving just one wire from pin 5 of the ICSP to pin 2 of J3 on the arduino board. Serial communication is also possible but would require some reconfiguration of the Guzunty; connect JP32 and JP34 (also recommend disconnecting JP29 and JP30 if you want to keep all Pi signals off the Guzunty connectors).


Arduino IDE Installation - Gordon Henderson 2012 sep

https://projects.drogon.net/raspberry-pi/gertboard/arduino-ide-installation-isp/

The In System Programming (ISP) method is the one I recommend to use with the Raspberry Pi and the Gertboard. The down-side is that during program development of the code you are running in the ATmega, you need to use 4 GPIO pins on the Pi. You can pick (almost) any 4, but I suggest you use 4 of the 5 pins dedicated to the SPI interface.

To use the Arduino IDE with the Raspberry Pi and the Gertboard, you will need to make some small changes to both the Pi’s and the Arduino’s configuration files. However, the first step is to install the IDE, cross compilers, etc. To use the ISP programming method (which is recommended), you need a modified version of the avrdude program.

...


Raspberry Pi - Using Arduino - Episode 1 - An introduction... TheRaspberryPiGuy Published on Jan 7, 2013

http://www.youtube.com/watch?v=F-te4qkbh28
   

In this tutorial we will be looking at the Arduino and how to use it with the Raspberry Pi... I will show you how to install all the necessary software in order to program the Arduino, I will tell you all you need to know about Arduino and where you should get one etc. By the end of this episode you will be able to understand an entire C++ Arduino program that makes a LED flash on and off.

...


Udoo mini computer combines best of Arduino and Raspberry Pi By James Holloway April 16, 2013

http://www.gizmag.com/udoo/27099/

What do you get if you cross a Raspberry Pi computer with an Arduino microcontroller? It might be an awful setup for a joke, but it's an enticing question if you're an electronics hobbyist or Internet of Things doer. Happily, thanks to Udoo, this is now a question with an answer. The mini PC combines the best of its predecessors in a compact PC-on-a-board with four times the power of a Raspberry Pi with all the functions of an Arduino Due microcontroller. The tinkerers of the internet have made short work of Udoo's Kickstarter target with 53 days remaining.

Pitched as a board suited to rapid prototyping of projects with both hardware and software sides, Udoo is effectively a one-stop shop for driving electronics projects. Udoo has two processors on one 4.33 by 3.35-inch (11 by 8.5 cm) board. A 1-GHz ARM i.MX6 Freescale processor (which comes either dual- or quad-core) is capable of running either Linux or Android, alongside the same ARM SAM3X (not to mention all the inputs and outputs) of an Arduino Due board.

Among the other goodies crammed into the open-source board are 1 GB of RAM, HDMI output, built-in Wi-Fi, Mini USB and microSD connectivity. The PC boots from the inserted microSD card, meaning, as with a Raspberry Pi, switching between different OS setups is as easy as switching cards.

By default, the machine runs Linaro, a Linux distro optimized for ARM architecture. Using Linaro, you can handily use the Arduino IDE development environment and send code directly to the SAM3X Arduino processor without having to fuss with cables (reason enough for some to snap one up, we imagine). Alternatively, the developers of Udoo claim Android 4.0.4 Ice Cream Sandwich runs without a hitch.

The board, being developed by a team from a select group of universities, is said to be 80-percent ready. The team just needs to iron out some kinks in both hardware and software ahead of a September launch.

As you might expect, an Udoo is more expensive than either a Raspberry Pi or an Arduino board. If you're quick, a US$99 Kickstarter pledge will snag you an early-bird dual-core Udoo (rising to $109 when the first 200 sell out). Early bird quad-core models have already sold out, going for $119 a pop. They can still be had for $129 (but also appear to be selling fast).

.END

No comments:

Post a Comment