0
votes
0answers
9 views

Interpreting x86 assembler code for Initialising pc16550d UART

I am trying to deduce from this block of code how the PC16550d UART has been initialised. Here is the code: So far I can say that before data can be transmitted and received the LCR, FCR, baud rate ...
0
votes
0answers
11 views

How to send data in response to HTTP get request from ESP8266?

I'm trying to control some RGB LEDs with ESP8266. I have built an HTML page to set the color and send the RGB color code to the ESP using HTTP get request. Everything works as expected. I just want to ...
0
votes
1answer
18 views

Fastest way to send serial commands and do something

I am trying to send a lot of serial commands really fast. I basically need to change color of my LED strip many times per second (10 times per second should really be enough). If I do this over WiFi, ...
-1
votes
1answer
18 views

how to generate two pulses one with 60 and other 66 duty cycle at same instant in 2 pins

I have to drive two switches one at a duty cycle of 60% and other at a duty cycle of. 66% simultaneously at 50khz frequency. . I am using arduino uno atmega 328
0
votes
0answers
16 views

“No Socket available” for WiFiClient

I have an LDR/Photocell which sends a value 1 or 0 (depending on the value) to a text file on my web address. The code works for a few seconds then prints out No Socket available. Any help will be ...
0
votes
0answers
15 views

Problems in calling a PHP script from ESP8266 using Arduino

I am also doing the same thing on a local server. I am calling a PHP script using AT commands. I am doing it right from the serial monitor so, I have not developed a code for it. I am listing out the ...
2
votes
1answer
22 views

Arduino nano select port option is blurred | Driver issue

I have just bought arduino nano board. when i connect the board via usb, system detects the new device but i am not able to select port in arduino ide for writing any code on board. I checked my ...
0
votes
0answers
21 views

Realistic to create a local variable as the SD buffer?

My intention is to read a file (of max. 128 KB) from an SD card and store it in (external SRAM). I will use an Arduino Mega which has 8 KB of internal SRAM but even 8 KB is not really much for some ...
-3
votes
1answer
28 views

Sketch Memory in Arduino pro

void storedata(unsigned int type , char data[]) { //Storing Data into file pinMode(10, OUTPUT); if (!SD.begin(SD_CS_PIN)) { Serial.println(F("initialization failed!")); return; }...
0
votes
0answers
19 views

Using TWO Enc28J60 HasRun HR911105A ethernet shields

I am trying to make a project using two Arduino Nanos with an Ethernet shield ENC28J60 each. When I connect only one of them they receive the packets from the program (the sending program I am using ...
2
votes
2answers
29 views

How Arduino IDE works?

You know , a simple arduino sketch has no main function , no include preprocess cmds,so I just want to know how arduino IDE convert a sketch to normal C/C++ source code,and what is the source code ...
-2
votes
2answers
39 views

Can i connect Bluetooth and wifi module together to Arduino uno? [on hold]

I have to make a project in which i have to get bluetooth addresses of all the nearbuy devices and send this addresses as a string using WiFi module to a server. Can i use arduino uno or i have to use ...
-3
votes
2answers
40 views

How to code water flow sensor and solenoid valve?

I want to know if it is possible to put a boundary or limit to the volume that passes through a water flow sensor, and close the pipe using a solenoid valve. Example: I only want 400 ml of water to ...
1
vote
1answer
30 views

When writing to SD card the file has all gibberish how do I fix it?

I am working on a class project where I am using a Teensy 3.5 with a Prop Shield with sensor attached that will be loaded into a rocket that I will launch and gather data from the altitude, pressure ...
1
vote
0answers
27 views

Directly read analog voltage using PWM duty cycle timer registers

I'm outputting an analog voltage by setting an 8-bit duty cycle using analogWrite. Once set, I'd like a way to read back this duty cycle. I've managed to read the duty cycle back from the OCR4D ...
1
vote
1answer
37 views

Why does this sketch give MPU FIFO overflows?

I'm transmitting this program over an NRF24l01, data from mpu, and I'm getting a FIFO overflow. Im not sure what the problem is but it gives me a lag when I put it on processing so I know the problem ...
0
votes
1answer
44 views

Differences between a real and clone Arduino uno?

Today I got my clone Arduino and connected it to my real Arduino and they both work. (UPDATE: The Arduino noted as real Arduino probably also is not a real Arduino; however both work fine). However, ...
0
votes
1answer
22 views

if condition does not work

I'm trying to connect two Arduinos according to the example in Example I added a bit of debug prints so the code looks like: #include <Wire.h> // Include the required Wire library for I2C<...
1
vote
3answers
36 views

Use registers as parameter?

I'm writing a helper class to manage timers, and I'm writing a lot of code like if (timer == 1) ICR1 = icr; else if (timer == 3) ICR3 = icr; else if (timer == 4) ICR4 =...
0
votes
1answer
15 views

HC-06 Bluethoot communication

During this week i purchased two hc-06 bluethoot module for arduino with the purpose of maintain a stable bluethoot connection between two arduino devices. Most people use hc-05 and hc-06 togheter so ...
1
vote
2answers
34 views

Using an Arduino on a motorcycle

I want to use the Arduino to control various electronics on my motorcycle. I would need to power the Arduino with the motorcycle battery. So the question is, when the motorcycle is running the ...
0
votes
0answers
7 views

Reading and writing statue of GPIO pin to EEPROM in NodeMCU

I am trying to read and write the state of GPIO pin which are responsible for turning the really on and off [full code can be viewed here] line 83/84 commented as it is not working. !control::...
-2
votes
0answers
26 views

I'm unable to upload this code (note: verbose output is on) [on hold]

int LED1 = 13; int LED2 = 12; int LED3 = 11; int LED4 = 10; int LED5 = 4; void setup() { pinMode(LED1, OUTPUT); pinMode(LED2, OUTPUT); pinMode(LED3, OUTPUT); pinMode(LED4, OUTPUT); ...
2
votes
1answer
22 views

Performing multiple Wire.writes() - does endtransmission slow things down?

Here's a question for anyone knowledgeable of the ways of I2C. I'm curious about sending multiple writes to a device and was looking at the code for a MPU9250 module. There is a nice library that ...
2
votes
1answer
23 views

WiFiEsp not working on Software Serial, working fine on Hardware Serial

What I want to achieve I want to connect to my wifi network using Arduino UNO and ESP8266 using WiFiEsp.h library over `SofwareSerial, since UNO doesn't have additional H/W serial. What I am able to ...
-1
votes
0answers
30 views

How to calculate velocity using accelerometer and orientation?

my goal is to measure the velocity in a car using an Arduino101. I read the accelerometer and gyroscope values (ax, ay, az, gx, gy, gz) from the internal sensors. I calculate the velocity by ...
0
votes
1answer
20 views

Fast I2C communication between ESP8266 & PCF8591

I need a faster commnunication between the esp and the adc so i found this https://github.com/pasko-zh/brzo_i2c. Original wire Example #include "Wire.h" #define PCF8591 0x48 byte a0; void setup() { ...
1
vote
0answers
17 views

Read one(2) hex-adresses from a string

On a 2560 MEGA I use serial(0) and serial1. Serial1 is connected to an AT-328P (not an UNO but a single AT controller) The 2560 use Interrupt (serialevent) and Serial1Event. Serial(0) is ...
1
vote
0answers
16 views

Arduino Uno WiFi - How to disable WiFi?

I'm using Arduino Uno Wifi. I made my Arduino to get connected with my local network based on http://www.arduino.org/learning/getting-started/getting-started-with-arduino-uno-wifi Now I would like to ...
1
vote
1answer
21 views

Why are there two sets of tools and bootloaders in the Arduino IDE?

After digging around on a separate problem, I found that avrdude, avr-gcc and some more tools can be found in two different locations: (1): C:\Program Files\Arduino\hardware (2): C:\Users\<user&...
1
vote
1answer
38 views

Problem on Arduino Interrupt and RTC

I am doing an experiment. In this experiment I want to start the RTC by presing the external Push Button which is connected with Aquino's pin 2 and take varites of action according to Time. For ...
1
vote
0answers
26 views

I fried the AMS1117 voltage regulator on my Uno, is this the cause?

I had the 12V DC power jack plugged-in all the time, and "to make things more exciting" I also plugged-in the "data" USB whenever I had a new sketch to upload. Is this combination a big no-no, or is ...
1
vote
2answers
38 views

Run 5V/2.3W water pump on Arduino Pro Mini 5V

I want to build up my automatic water pump with an arduino pro mini 5v and a 5v usb water pump (2.3 W). As I understand, I cannot power the pump directly through the vcc pins of the board, right? ...
2
votes
2answers
25 views

Creating a library of C++ classes for Arduino; How to #include “Arduino.h”, “WProgram.h”?

I've written 6 C++ classes on the CLion IDE to be used on Arduino. One of these classes uses a C++ library called "Adafruit_PWMServoDriver.cpp" provided by Adafruit to use the PWM driver they sell. I'...
3
votes
0answers
15 views

Arduino IDE - Maximum serial COM ports

What is the maximum number of serial ports (com) can Arduino IDE detect ? I need to connect 6 Arduino UNO Wi-fi at a time to make a small network and I use a 7 port USB hub for the same. The device ...
0
votes
0answers
19 views

Parsing NMEA CGNSINF sentence on Arduino and SIM808

I am trying to parse this NMEA string but I couldn't do it probably I am new to it. I am using SIM808 Gps/Gprs shield and ArduinoMega 2560. I am getting the sentence but I only want Longitude,Latitude,...
0
votes
1answer
24 views

LED fade with LDR sensor depending on the light

I need help on a project. I just started to experiment with arduino 2 weeks ago and I am building a lamp that react to movement and interactions. So the idea is; when there is nobody in the room, the ...
0
votes
0answers
4 views

Interfacing ArduCam with NRF24L01 to Arduino Uno [duplicate]

I am currently finalizing a purchasing order to get several of the ArduCam CMOS OV7670 cameras. I am purchasing them because they have the capability to return an array of the RGB565/555/444 which ...
0
votes
0answers
27 views

Too slow start up with Atmega2560 on custom PCB

I have some several custom PCB's based on Atmega 2560. I am using AVRISP MarkII for flashing. No bootloader. Flashing is flawless, it just works. I have one assembled PCB works as it should be, no ...
0
votes
0answers
23 views

Converting arduino uno as an router with help of Ethernet shield and esp8266 module

Is it possible to connect to the internet using an RJ-45 port on ethernet shield and then transfer the information over to the esp8266 module and use it as a wifi router
0
votes
0answers
15 views

Interfacing ArduCam with NRF24L01

I am currently finalizing a purchasing order to get several of the ArduCam CMOS OV7670 cameras. I am purchasing them because they have the capability to return an array of the RGB565/555/444 which ...
1
vote
2answers
41 views

Pre-heat time required for MQ-5 gas sensor

The datasheet of MQ5 sensor says, it requires a pre-heat of 24 hours. Does this mean that it needs to be powered on for 24 hours consecutively before usage? Some other websites (e.g. http://www....
0
votes
0answers
21 views

How to play Midi from the Sparkfun Mp3 Player Shield?

in the video: https://www.youtube.com/watch?v=zc1zbwheyE0 I suspect they may be using the midi playback functionality of the chip (VS1053b) on the Mp3 shield. how do you playback Midi from the mp3 ...
0
votes
1answer
41 views

How to convert uint8 to int for maths operation in Arduino? [on hold]

I am receiving a string from my bluetooth terminal in uint8 format. I want to convert it to integer for further processing. How can I do this? I tried toInt() but it is not working. Please help. ...
1
vote
1answer
25 views

Sending a string to arduino and is not reacting to it

I am trying to move servos with a VR headset, I am using the Unreak 4 Arduino Plugin, but that is not the problem. I send the rotation Y and Z from the headset, convert them to int and then send them ...
0
votes
4answers
51 views

PWM generation using Arduino uno

How to obtain four PWM outputs at 100 kHz using an arduino uno board? The requirement is that all four PWM outputs should have controllable duty ratios individually.
4
votes
0answers
20 views

Arduino Uno as USB to Serial converter (bypass 328p)

I'm trying out computer to computer serial communication using 2 Arduino Unos (both connected to different computers). Right now, I use the Software Serial library, which redirects data from the ...
0
votes
2answers
40 views

How to reset the arduino uno after 5 seconds?

I am using this code.. But everytime after one rfid tag is read by the reader, I have to manually press the reset button on the arduino before scanning the next tag. I want to do this operation after ...
0
votes
1answer
16 views

High range Obstacle detection system

I am making a high range and fast Obstacle detection system , HC-04 is slow for that, other sensor don't have the range and Lidar is too costly. Any idea how to make a long range(more than 10m) high ...
0
votes
2answers
28 views

Issue with IF statement

The program plays a random mp3 file from an Adafruit mp3 breakout board. The trigger to play the song is a sharp IR sensor. Basically to play a file you pass your hand over the sensor and it plays the ...

15 30 50 per page