Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
225 views

Can one re-program a Leonardo Eth via its Ethernet port only?

Let's assume we have an Arduino Leonardo Eth running some sort of networking application, perhaps a very simple web server. Importantly the server is read only and static HTML. There is no ability to ...
Paul Uszak's user avatar
2 votes
1 answer
183 views

Improving moving mouse loop to optimize speed

Code: #include <Mouse.h> #include <hiduniversal.h> #include "hidmouserptparser.h" #include <USBController.h> USBController controller; USB Usb; HIDUniversal Hid(&Usb); ...
Jake Jin's user avatar
3 votes
2 answers
511 views

Multiple Time-Sensitive Tasks

I'm using an Arduino Leonardo and need to perform two time-sensitive tasks like this: // Task 1 - Gets executed once a second (1Hz) // Execution of task needs approx 70ms task1(); //Sending a ...
MarayJay's user avatar
0 votes
1 answer
260 views

Trying to start a timer to change lights when a button is pressed

I am trying to setup a series of lights (traffic lights) that change based on a timer that begins when a button is pressed. The goal is to use the lights to track how long its been since you pressed ...
Chris's user avatar
  • 1
2 votes
2 answers
283 views

How to learn electronics/programming with Arduino? [closed]

I want to learn core and mechanics of microcontrollers with Arduino, and I don't really know where to find good source of knowledge. Every Arduino related tutorial is about very basic stuff like ...
Kacper's user avatar
  • 123
1 vote
3 answers
850 views

How big of a difference is there between an Arduino Uno and the rest?

Lately I've been fooling around with a project for my Microsoft Sidewinder Force Feedback Pro Joystick. I've found out that there is a project currently for it built for the Teensy 2.0. On the page ...
KillerXtreme's user avatar
0 votes
1 answer
917 views

Leonardo with xbee shield?

I'm trying to get a XBEE shield to operate on an Arduino Leonardo. Usually i use the AltSerialLibrary to emulate an extra serial for the xbee. However since the Leonardo comes with two sets of serial, ...
user4985's user avatar
  • 117
0 votes
3 answers
371 views

Controlling Arduino from Raspberry Pi

I am trying to control an Arduino Leonardo R3 to run some code when "triggered" from a Raspberry Pi. This would be in a loop so that it can be run multiple times. I have set up the Raspberry Pi and ...
Rahul Khosla's user avatar
0 votes
2 answers
4k views

Pixy(CMUcam5) robot Distance code

Can anyone help me with the code-ing to allow the robot to stop at a certain distance when the robot is approaching the tracked object. I am trying to implement it as a colour tracking wheel chair. ...
Jeremy Ong Xuan Yu's user avatar
0 votes
1 answer
2k views

Wrong Mouse.move() output in Arduino Leonardo

I'm using my Arduino Leonardo as a Mouse but I'm experimenting a strange behaviour. I put my mouse at (-1, -1) (absolute) coordinates and then I execute this code: Move.move(com[curr_cmd_id].x, com[...
Cob013's user avatar
  • 101
4 votes
1 answer
1k views

Leonardo-based tachometer?

I'm new here. I'm not a native speaker, so pardon my English. I just received my Arduino Leonardo today. I tried some basic calculations and stuff like blinking and LCD interfacing. Its interesting. ...
x0x's user avatar
  • 149
0 votes
2 answers
107 views

Keyboardmessage on Arduino UNO

Can an Arduino UNO and Arduino Leonardo do the same things? Some of the examples in the Arduino software say to use Leonardo e.g. KeyboardMessage.
usingla's user avatar
  • 11
3 votes
2 answers
2k views

portd not writing on digital ports 5 and 7

I try to build a function generator (preferably a sine) with an R-2R ladder and a Arduino Leonardo by Borderless Electronics. For performance reasons one should use portd instead of digitalWrite. ...
vice_spirit's user avatar
1 vote
1 answer
761 views

How do I use a i2c port expander to read buttons with pull ups and inverting the resulting uint16_t?

I am using a mcp23017 to read button presses for my joystick project and am using the internal pullup to minimize complications. Is there a way to invert all the bits in the uint16_t so i can send the ...
user862's user avatar
  • 71
10 votes
4 answers
9k views

How to really shrink a sketch

I want to make a sketch that is as small as possible, for test purposes. The problem is, when i compile the BareMinimum sketch (with an empty setup and loop), i get 466 bytes for the Uno and a ...
TheDoctor's user avatar
  • 3,509