Tutorial - Arduino Due - Button Mouse Control

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.

Materials List

1 x Arduino Due

1 x Breadboard

5 x Push Buttons

5 x 1KΩ Resistor

Some jumpers

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)

Microcontroller AT91SAM3X8E
Operating Voltage 3.3V
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

WARNING!!!

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. 

DAC Output

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.

Communication         

  • 4 Hardware UARTs 
  • 2 I2C
  • 1 CAN Interface (Automotive communication protocol)
  • 1 SPI
  • 1 Interface JTAG (10 pin)
  • 1 USB Host  (like as Leonardo)
  • 1 Programming Port

PS:The SAM3X natively supports ethernet protocol but its need a PHY interface to work. See more information on this link

Pinout Diagram

On image below you see the Pinout Diagram (by Gray Nomad) :

Programming

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!

Reference

http://arduino.cc/en/Tutorial/ButtonMouseControl

http://arduino.cc/forum/index.php?PHPSESSID=7a57482e5bea99f5316fa31...

http://arduino.cc/en/Main/ArduinoBoardDue

http://arduino.cc/forum/index.php/topic,142908.0.html

Views: 5282

Tags: -, Arduino, Button, Control, Due, Mouse, Tutorial, device, usb

Comment

You need to be a member of GarageLab (arduino, electronics, robotics, hacking) to add comments!

Join GarageLab (arduino, electronics, robotics, hacking)

Latest Activity

GarageLab posted a blog post
yesterday
Donnie Rose replied to Donnie Rose's discussion Building an auto-boat to keep ducks out of the pool!
"Correction, sorry.  RC receiver is not used with this set up.   Battery & motor hooks…"
Thursday
Donnie Rose posted a discussion
Thursday
Profile IconDonnie Rose and Ransona Company joined GarageLab (arduino, electronics, robotics, hacking)
Thursday
GarageLab posted a blog post
Thursday
Jim Kelley commented on GarageLab's blog post HemaVision Smart Thermal Imager Actually Tells You What that Cool (or Hot) Image Means
"This could be a valuable tool for diagnosing temperature and humidity problems in locations where…"
Thursday
Anthony Parker updated their profile
Wednesday
David Braithwaite added a discussion to the group Raspberry Pi
Tuesday
David Braithwaite joined David's group
Thumbnail

Raspberry Pi

This is a place to discuss all things Raspberry Pi.See More
Tuesday
GarageLab posted a blog post

Artificial bee brain used for vision system of a drone

The Green Brain Project is located in Sheffield, England, and it has one key focus: to simulate a…See More
Tuesday
Profile Iconabraham chemweno, Hetcher, Dan Calef and 1 more joined GarageLab (arduino, electronics, robotics, hacking)
Tuesday
Robbie McCreath commented on GarageLab's blog post Tutorial: Stepper Motor + Easy Driver + Arduino
"Hi there, ive been woking on this tutorial and it is exactly what i need, with use of the serial…"
Monday
daniel gabriel left a comment for daniel gabriel
"stop this, i know what is next to, you scammer"
Apr 10
GarageLab posted a blog post

HemaVision Smart Thermal Imager Actually Tells You What that Cool (or Hot) Image Means

HemaImaging it’s working on the HemaVision, a standalone thermal imager that will be able to give…See More
Apr 9
Profile Iconfidel, Mauro Pompetti, FRANK KWABENA and 1 more joined GarageLab (arduino, electronics, robotics, hacking)
Apr 9
Anuradha Ranasinghe is now a member of GarageLab (arduino, electronics, robotics, hacking)
Apr 8
GarageLab posted blog posts
Apr 8
Juan Luis is now a member of GarageLab (arduino, electronics, robotics, hacking)
Apr 7
Profile IconArduino Aficionado and Ilyass Renswoude joined Harold Krueger IV's group
Thumbnail

Makerspace

A group for discussing local makerspaces.See More
Apr 6
teknotellal posted a discussion

How to control 3 led via ESP8266-01?

I want to control 3 led but with ESP8266-01 I can control just 2 led. Each led has a D Flip-Flop.…See More
Apr 6

© 2015   Created by Marcelo Rodrigues.

Badges  |  Report an Issue  |  Terms of Service