Questions tagged as 'arduino'

2
answers

How to convert string array to string?

In a program for Arduino, I have an array of strings but it seems that the function where I am going to use this data only accepts string. How do I convert an array to a string? File prog = SD.open("prog.bin"); String leiaS(void){ return...
asked by 01.07.2015 / 19:21
1
answer

C ++ / Arduino Array in class

I have a problem in using an array of pointers, I need to create an array with pointers that refer to an integer value of each object of another class. Example: arrayDePonteiros[0] = objeto.int; In case this array is inside a class and a...
asked by 16.08.2014 / 22:51
4
answers

Bluetooth connection Arduino and Android (Java) - InputStream storing old data

I'm making a very simple Java class just to simulate Android's communication with the Arduino via Bluetooth. The idea is as follows: The Arduino every 5 seconds will turn on and off an LED. If the LED is lit, String "1" will be sent to the se...
asked by 13.07.2014 / 18:48
1
answer

How to store data coming from Arduino in a Java string?

I need to store data coming from Arduino on Java via serial communication only that the values sometimes not completely filled. I'm using the rxtx library. //trecho do código para leitura int avai...
asked by 02.04.2017 / 14:07
2
answers

Leds and Arduino board

Good evening, I'm programming an arduino one using C. I'm using an RGB led on three PWM outputs. However, now the need to connect more leds, one hundred leds at the same time, but besides not having the necessary ports, I need a solution to b...
asked by 28.07.2015 / 03:25
1
answer

Send Arduino data to Android (ultrasonic sensor)

I made this code to receive data from an ultrasonic sensor on a Android cell. After passing the application to the cell phone and the code for the Arduino, it can only connect, but does not show the data of the sensor distance. Could some...
asked by 11.11.2015 / 02:14
0
answers

Receive data from arduino via serial in C # application

I need to make an application that sends and receives data from an arduino leonardo. I tried some examples of serial connection between C # and Arduino and in all instances I had the same problem, Arduino receives data sent by the application bu...
asked by 13.12.2018 / 23:00
1
answer

Socket connection causes exception in Android

The code below works perfectly when only used with a JButton, but when passing to Android happens the exception (Exception). I have found that the error is in clientSocket = new Socket(serverIP, serverPort); but I can not understand the...
asked by 18.05.2014 / 17:17
0
answers

Sending Vectors from Computer to Arduino

Hello, I have a project that uses Arduino to perform some operations for me. However, these operations use vectors. I need some way to send a computer vector (other than Serial) to the Arduino, and then send it back to the computer....
asked by 11.11.2015 / 22:35
0
answers

Enter decimal values on the computer keyboard and have the answer on the computer screen using arduino

I want to have the arduino connected to my computer and through the keyboard of the computer enter two values with cecimal houses, for example 10.5 and 12.7 and the arduino sum and present the result on the screen. This?     
asked by 10.07.2015 / 01:13