Questions tagged [c]

C is a procedural programming language which is widely used in embedded systems. PLEASE NOTE: Arduino is typically programmed in C++, not C.

Filter by
Sorted by
Tagged with
1
vote
2answers
415 views

Serial data to arduino problem

I cant understand what is going on here , I was trying to find way to send through Serial a number for example 12 and then extract from it number 1 and 2 and store them in two different variables , ...
0
votes
1answer
336 views

Serial input parallel output shift registers with arduino

I need a way to rewrite the switch case part in a more efficient way. int y , x ; byte dataArray[6]; void setup () { pinMode(8,OUTPUT); pinMode(11,OUTPUT); pinMode(12,OUTPUT); Serial....
-2
votes
1answer
8k views

Sample average of analog of current sensor

I have two problems in the code below. This ACS712 sensor is too noisy so I am not getting the count value properly, since I need approximate reading I consider curve is linear, and calculate the ...
3
votes
1answer
280 views

Knowing the Arduino memory capacity

I am using Arduino uno. My data is storing into EEPROM whenever i run my program, it will store multiple data depend on the loop. For my program it calculate 10 sample in 0.1 sec, so 100 sample in 1 ...
3
votes
1answer
1k views

Cannot read from 2 I2C slaves consecutively

I am currently trying to communicate between 3 Arduinos using I2C. One of them acts as a master, while the rest act as slaves. I can request data correctly from the master. But if I were to do 2 ...
0
votes
1answer
2k views

How do I set Grove GPS to use A-GPS?

I am using a grove GPS http://www.seeedstudio.com/wiki/Grove_-_GPS I attached the GPS to Serial1 of Arduino Mega 2560. The baudrate of the GPS is set to 9600. Library wise, I am using TinyGps to ...
2
votes
0answers
222 views

GPS - Speed doesn't update as should - EM408 & Arduino Mega & GSM

I'm developing a system that will get the GPS signal and send it though the GSM with information about position, speed and temperature from some digital sensors. Currently I'm using the GPS EM408, ...
2
votes
2answers
2k views

Arduino Interrupt Debouncing

I have an issue with debouncing. I am using a MCP23017 as an I/O-extender with an Arduino. This uses I2C to communicate with each other. A variable amount of switches is connected to the MCP23017 (0-...
2
votes
0answers
18 views

Sending variable in url [duplicate]

Working on a arduino code, but its C code. Having the problem that I want a variable with int to increase in a loop to run with the url: student.cs.hioa.no/~s180343/updatedb.php?verdi=%d The ...
11
votes
3answers
16k views

How to call C functions from Arduino sketch?

I would like to know if there is a way to call functions that are contained within C files using an Arduino sketch? My C file declares and defines a function. To save putting the messy function ...
2
votes
2answers
207 views

Replicate a Waveform Exactly with An Arduino Uno

So I've got a waveform that's high for 16ms and low for 2ms repeating forever. I need to recreate that and offsets of that waveform time exactly on a different pin. Right now, I've got an interrupt on ...
3
votes
4answers
3k views

What are the tools that I need to program the Arduino in C?

The Arduino IDE by default is oriented towards C++. The linker for example requires .cpp files and not .c files, otherwise it leads to errors during the linking process. See name mangling if you want ...

1
5 6 7 8
9