Questions tagged as 'arduino'

2
answers

Difference between local variable VS global variable

In my micro controller classes the variables are always defined globally and very rarely locally and I would like to know why, because in my head it makes a difference between being global or local. 1. 2. Both the local variable an...
asked by 28.09.2018 / 16:49
1
answer

What happens on these lines in C ++?

This is an encoder reading routine which detects which direction of rotation of the encoder. References are the left and right pins appreciated as MSB and LSB bits. The code works perfectly, but I do not understand what exactly happens in the ex...
asked by 17.05.2016 / 20:50
1
answer

How to make an HTTP GET request for a web service with Arduino

With a request via GET for a web service with Arduino , using the following URL and passing a parameter
asked by 01.12.2015 / 13:29
1
answer

How to display variable char on Arduino's LCD?

I was trying to print a char variable on the arduino's LCD but I can not, always from the error when I try to compile the code. I have already pulled the LCD library and the line I am trying to print is the following: lcd.print("%c",letra);...
asked by 08.05.2015 / 16:44
2
answers

Store SMS message in variable

I'm having trouble saving an SMS message to a variable. The idea is to send an SMS with a command and later use a conditional operator to activate or deactivate a relay. But I can not save the SMS message. Whenever I try to save it, it assume...
asked by 22.08.2014 / 20:17
0
answers

Difficulties in Scilab

I'm communicating via USB - > Arduino Serial and receiving values from a sensor. But sometimes values have different sizes and the function used to receive the bytes from the serial needs a defined amount of input bytes. Example: data = reads...
asked by 09.09.2016 / 15:36
1
answer

How to encrypt a pendrive in C?

First of all, I have a security idea, and to put this idea into practice I would need to learn how to encrypt a USB stick. The idea is that the pendrive works as a 'key', and at the same time this pendrive can not be easily accessed (hence th...
asked by 18.08.2016 / 15:36
2
answers

How can I get more accurate values dividing two long?

I'm programming a CNC on my own, and I'm in the middle of my code, and now I have two variables of type long that when split results in an exact fractional value but the Arduino returning a fractional value of only 2 houses. long x = 99;...
asked by 01.07.2015 / 09:17
1
answer

Arduino UNO restarts when using serial port outside the IDE

My Arduino UNO is restarting when I use its serial port with a Python script. But when I open the serial terminal through the Arduino IDE and run the same Python script, it works normally. Why does this happen and how do I resolve it? Arduino...
asked by 22.06.2014 / 05:54
1
answer

TComPort - Delphi Xe7

I need a component that can read serial port, I'm making an application integrating with arduino. I've seen Tcomport, but I can not install it in Delphi xe7, has anyone managed it? Error: [dcc32 Fatal Error] CPortLibDXE7.dpk (34): E2202 Re...
asked by 02.11.2015 / 16:27