Questions tagged as 'arduino'

2
answers

Pick up a hardware variable and play in a software

I have a potentiometer (hardware) that generates a variable that will oscillate from 0 to 1023. I need to read this variable void atualizaDados(){ int valorpress; int valortemp; valortemp=analogRead(temperaturaPin); temperatura=valorte...
asked by 21.07.2016 / 15:23
1
answer

Separate array and save in strings for later use

I have a loop for * which counts from 1 to 8 and saves to an array call str , but I I would like that when the variable str reaches 8 the value of str[i] in the array str_line[b] Example: The f...
asked by 20.04.2016 / 14:05
1
answer

Add pointer to a std :: vector

Hi, I need to add in a vector<TimedCommand> tCommands; access references for TimedCommand instances, eg: TimedCommand command1("*.*.*.*.*.*",&sonCommand,"13"); (...) tCommands.push_back(&command1); Unfortun...
asked by 05.11.2014 / 14:58
1
answer

Arduino - invalid operands of types 'double' and 'double' to binary 'operator ^'

#include <DHT.h> #include <math.h> #include <stdlib.h> #include <stdafx.h> #include <iostream> #define DHT1PIN 2 #define DHT2PIN 3 #define DHT3PIN 4 #define DHT4PIN 5 #define DHT5PIN 6 #define DHT6PIN 7 #define DHT...
asked by 11.08.2014 / 20:04
0
answers

Arduino: save file name / directory in variable with SdFat

In the SdFat documentation, there is a "getFilename (char *)" method that you can assign the file / directory name to an array of char. However, at the time of compiling, this method does not exist! I have already installed all versions of SdFat...
asked by 21.12.2018 / 17:56
1
answer

Compare date and time

In C I have the time.h lib to manipulate date and time, already in Arduino the DateTime class that implements some methods. I'm not finding, even if it's in the fingernail, how to compare date and time, for example: if ( dt >= checkin )...
asked by 07.12.2018 / 01:35
1
answer

How to make a submit that zeroes a counter

I do not understand javascript and not to know how to search to make a button that when tight zerosse my counter which is a global variable <form id="btn" method="get"> <input type="submit" name="submit" value="zerar"onclick="submit()...
asked by 17.11.2018 / 21:12
0
answers

authentication token in SIM800L POST request

Hello. I have been facing some problems when it comes to adding a TOKEN to the HTTP request header, which is POST type, with the SIM800L GPS module. I'm using this module: Andtheproblemiswhenaddinganinformationintheheader.ItriedusingAT+HTT...
asked by 12.11.2018 / 05:16
0
answers

TB6600 Driver with stepper motor and StepDriver library

I'm using a nema stepper motor 34 for up to 100KG, with the TB6600 driver and the StepDriver library developed by Fernando K's face technology #
asked by 22.11.2018 / 15:58
0
answers

socket_connect () - Error 113 - PHP

I'm trying to make an Arduino receive data in a PHP structure. Quickly explaining, when the user changes the status, between 0 and 1, it would send a signal to the Arduino according to what was chosen and the Arduino receiving this data,...
asked by 11.11.2018 / 14:54