Questions tagged as 'arduino'

1
answer

Problem with PySerial library (PYTHON)

I'm trying to control the arduino by a Python script through the "pyserial" and "serial" library. But every time I run the code it gives an error in the first few lines: import serial ser = serial.Serial('COM7', 9600) error returned: Tra...
asked by 04.03.2018 / 19:48
1
answer

Error with array in C - arduino

I'm having an error signing an array: Menu m = Menu(); m.Options[4] = {"teste1","teste2","teste3","teste4"};//Erro aqui m.Show(); Menu Class: class Menu { public: String Options[]; int index = 0; int len = 0; String Show()...
asked by 23.12.2017 / 15:09
1
answer

Graphics with noise in arduino no plotter

Implement code that simulates the speed of a car as a signal plus noise, with 50 elements. The speed value increases linearly from 0-50 km / h. The noise amplitude is ± 1 km / h. The values are sent to the console with a precision of three signi...
asked by 12.01.2018 / 13:17
2
answers

Size of a dynamic array

I'm doing dynamic memory allocation testing, but when I try to get the size of the array I always have the same result. int main() { int *teste=malloc(sizeof(int) * 10); int len=sizeof(teste) / sizeof(int); print("%i\n", len);...
asked by 06.10.2017 / 21:51
1
answer

How to get communication response using MQTT

I'm developing an application which uses the MQTT communication protocol, where my system sends a command to a certain device, my machine is receiving the command and changing the status. The problem is: how do I get feedback from my device? Bec...
asked by 27.07.2017 / 20:44
1
answer

How to convert .ino (arduino) code to .hex?

How to convert my Arduino (.ino) code to .hex. I do not want to use the IDE (Arduino). Is there a way to do this?     
asked by 22.05.2017 / 22:50
2
answers

How to get value from the serial port?

With the code below I get four values ( 1,2,3,4 ) sent by the Arduino serial port / strong>, 3 or 4 values are not sent together, either 1 or 2 / p> serialPort1.Open(); string entrada = serialPort1.ReadLine(); txtIDTag.Text = entrada...
asked by 09.04.2017 / 23:00
1
answer

Two readers on arduino

As this code I read the card and inform if it is registered or not. Now I need to insert two rfid readers into the Arduino. How to add the second rfid reader in this code? include SPI.h include MFRC522.h define LED_VERDE 6 define LED_VERMELHO...
asked by 17.03.2017 / 10:42
1
answer

Arduino + C # + RFID?

I can get the id of the tag with this code snippet and play in a Textbox , but, how would I get the information of which reader RFID it was read? serialPort1.Open(); string entrada = serialPort1.ReadLine(); serialPor...
asked by 18.03.2017 / 14:09
1
answer

Configure GPRS module

I'm developing a project that aims to get the location of the GPS and send via GPRS to the server. But I want to know how to configure the APN so that it can be accepted chip from any operator in the GPRS module? while ( start_GPS() == 0); w...
asked by 18.06.2016 / 04:02