This tutorial will show you how to use the ButtonMouseControl example with the Arduino Due. The code reads five buttons and use the Mouse library to send commands to the PC.
1 x Arduino Due
1 x Breadboard
5 x Push Buttons
5 x 1KΩ Resistor
The Arduino Due
The Arduino Due is the last member of Arduino family. It's the first with 32-bit microcontroller, the Atmel ATSAM3X8E and has a CPU based on ARM-Cortex-3. The microcontroller's clock runs at 84MHz has USB interface (like a Leonardo) and others connections. Because of the new features implemented on Due, it makes possible some projects with highly computing needs.
The specifications of Arduino Due (From Arduino WebSite)
|Input Voltage (recommended)||7-12V|
|Input Voltage (limits)||6-20V|
|Digital I/O Pins||54 (of which 12 provide PWM output)|
|Analog Input Pins||12 (12 bits)|
|Analog Outputs Pins||2 (DAC) (12 bits)|
|Total DC Output Current on all I/O lines||130 mA|
|DC Current for 3.3V Pin||800 mA|
|DC Current for 5V Pin||800 mA|
|Flash Memory||512 KB all available for the user applications|
|SRAM||96 KB (two banks: 64KB and 32KB)|
|Clock Speed||84 MHz|
The operation voltage of I/O pins are 3.3V (not 5V). Don't use 5 Volts on I/O pins, you can damage the Arduino Due. The shields based on Rev.3 (like a Ethernet Shield) are compatible with Due. Other shields, based on 5 Volts need you to add a logic level converter between them.
Finally! A DAC is available. The Due has two 12 bits digital-analogic converters!!! Give goodbye to MP3 shields. The Audio Library (only compatible with Due) is on beta version but it can read .wav files.
PS:The SAM3X natively supports ethernet protocol but its need a PHY interface to work. See more information on this link
On image below you see the Pinout Diagram (by Gray Nomad) :
1° Download Arduino version 1.5.2 (beta version). Windows users, don’t forget to install USB drivers for Programming Port and for Native Port.
2° Mount circuit of figure below
3° Connect the Board to Programming Port and select Arduino Due (Programming Port) from the Tools>Board menu in the Arduino IDE.
4° Select sketch from the File>Examples>09.USB> Mouse>ButtonMouseControl menu and upload it.
5° Change to Native Port.
6° Click on buttons and see your mouse moving.
That's All!!! Please comment below!!! Thanks!