A microcontroller board based on the ATmega2560 or 1280 chip. Use this tag for questions specifically regarding the Mega, and not just general Arduino usage.
0
votes
0answers
10 views
PID Implementation on DC Motor Speed Control
The motor will only be very slightly loaded.There is no particular physical application, the point here is to show proof of principle.
Since the motor control is unidirectional, I plan on using a ...
0
votes
0answers
14 views
CC300 and get Client IP Address — How to use?
After the TCP server's accept call returns a non-negative value, you can access the first 4 octets of the client IP address through
tSocketClientAddr.sa_data[5],
tSocketClientAddr.sa_data[4],
...
0
votes
0answers
6 views
What is the protocol that uses ROS with arduino?
I'm trying to know what is the protocol that uses ROS and arduino, Is it Firmata?
0
votes
1answer
20 views
Is it possible to run 2 functions, that communicate with 2 different serial devices, in parallel using FreeRtos library?
This might seem like a very broad question but that's what i want it to be for multiple ways of implementation.
I've an Arduino UNO communicating with 2 Serial devices interfaced using SoftwareSerial ...
0
votes
1answer
23 views
sending room temp data from multiple esp8266's to Mega 2560 to control CH gas boiler
My existing Arduino Mega set up has been in use for about 4 years controlling my gas CH system & heat pump HW system using an Arduino mega & 13 'wired' DS18B20 sensors; 2 of these sensors ...
0
votes
1answer
30 views
How to 'label' module using electric techniques
I am in a project where it makes set of 'modules(set of separate circuits that will work as a sensor when connected to the board' that would be connected to Arduino Mega.
Currently, I'm planning to ...
0
votes
2answers
38 views
Interrupt numbering
I'm using an Arduino Mega and four of its interrupts. Each interrupt is only used to start/stop a timer, depending if it's rising or falling, so effectively runs the same function. Does anyone know if ...
-3
votes
1answer
49 views
Cannot use two arduino's [on hold]
I have one Arduino Mega and another Uno. I need to use both of them, but it looks like they interrupt each other.
I think its a serial conflict. At the Mega one its connected a robot arm (DOBOT), ...
0
votes
1answer
24 views
convert String to unsigned long long
i want to convert string for example
"68976543210" to unsigned long long(64 bit) in mega2560,
do is possible?
String x="68976543210";
unsigned long long y=?;
0
votes
2answers
36 views
DC Motor Speed Measurement using Rotary Encoder
I have written the following code to measure the speed of a unidirectional DC Motor.I have attempted to measure the time between successive interrupts in order to calculate speed.
boolean check;
...
0
votes
1answer
23 views
Question about number of sensors for Arduino Mega
What is a good max number of sensors for an Arduino Mega? Since it has like -- 2? -- ground connections, is it better to keep the number of sensors to a minimum amount?
0
votes
1answer
22 views
IO Control and Configuration
I am using Eclipse to program a ATMega2560 and would like to stay away from the Arduino library, While looking through AVR Examples I have seen the syntax
#include <avr/io.h>
PORTD.0 = 1
or
...
0
votes
2answers
22 views
How to convert voltage to current from ACS712-20A?
I've been used the ACS712-20A to measure the current flow. Actually I used LIFA program (LabVIEW interface for Arduino).
I used this equation:
((analog read)-2.5 )/ 0.1= current
But i still not sure ...
1
vote
3answers
33 views
Arduino shuts off and doesn't turn on after couple hours
I use a mega 2560, pir sensor and a SG90 9g Servo motor in my project. Basically while the pir outputs high, the Servo Motor rotates from 0 to 180 degrees.
Here is how everything is wired up:
PIR ...
0
votes
1answer
26 views
Opening webpage using ESP8266 in Arduino
I am trying to open the webpage in ESP8266 via Arduino Mega.
I have successfully opened the webpage if I use the AT command in the Serial Monitor
The output is perfect
+IPD,382:HTTP/1.1 200 OK
...
0
votes
1answer
29 views
serial to parallel and nixie clock
I'm going to use this tutorial : https://www.arduino.cc/en/Tutorial/ShiftOut to make a Nixie Clock. I was asking myself if other components that'll be easier to use existed ?
0
votes
1answer
49 views
Possible Arduino Uno c++ compiler bug?
I recently gave the students in my Arduino-based programming class a project to write some simple unit tests and fix the bugs that they encountered as they did. The class in question mostly stores a ...
0
votes
1answer
28 views
AVR-STL Library
I have a project that I need to use a vector, I have tried to get several libraries to compile with out luck. The one that has gotten the closest is Andy Brown's AVR-STL. I keep getting the error:
...
0
votes
0answers
35 views
Ethernet Shield: Failed to configure Ethernet using DHCP
I am currently making a design that uses the Arduino's Ethernet shield. I am using the PushingBox API for Arduino, and have tried it with my Arduino Mega (2560) with the ethernet shield attached to ...
0
votes
1answer
39 views
Is ATMEGA328P the same as 16U2?
I've been playing with my Arduino for a few months.
But, I just bought a shield that says it needs to be used with ATMEGA328P. My box says I have a 328P, however, reading the chip, it's inscribed ...
-2
votes
2answers
52 views
Is it possible to increase the arduino's input and output pins?
I am undergoing a BSc (Hons) Degree in Computer Science and working on an Arduino project.
I am using the Arduino Mega and even though this microprocessor has plenty of input and output pins I am ...
0
votes
1answer
25 views
Proper use of * and & when passing objects in methods
Coming from C#, pointers are somewhat foreign although I am grasping the concept.
Is it proper to construct methods in the following manner and passing the object (as a parameter) constructed by ...
0
votes
0answers
19 views
How to control motors without conflict from joysticks?
I am building an ROV that will control motors with 3 2-axis joysticks. I have four horizontal motors that are vectored in this configuration in order to allow for more axes of motion such as crab and ...
0
votes
1answer
16 views
how to calculate the needd volt and current to supply for arduino
i have Arduino MEGA and i'm connecting to it 5 servomotors
{ 3 TowerPro M995
Basic Information
Modulation: Digital
Torque: 4.8V: 130.5 oz-in (9.40 kg-cm)
6.0V: 152.8 oz-in (11.00 kg-cm)
Speed: ...
0
votes
1answer
34 views
Why ModBus RTU Master-Slave Dont Work
I have two mega arduino and want to them communicate with modbus rtu together, i use below link circuit for this :
...
0
votes
1answer
58 views
Serial Communication Between Two arduinos (Asking and Receiving)
Can anyone help? I'm trying to develop two sketches, where data can only be sent when a request is made for it between two arduinos. A simple hello world message can suffice. I tried out the Serial ...
1
vote
1answer
46 views
How to monitor a sensor for specific period
As noted in earlier posts, I am building a model railroad crossing gate signal, complete with gate arms, flashers and sound. Although I haven't settled on exactly how I am going to implement detection ...
0
votes
1answer
23 views
Arduino Mega pin conflict
I am building a rather complicated model railroad crossing signal and have moved to using the Mega since I need more pins than the Uno. Upon reading the specs of the Mega on the Arduino.cc website I ...
0
votes
1answer
19 views
Arduino Blocks at Uploading
I am trying to make an operating hours counter with arduino, i started with a basic script to make the arduino work as a stop watch, This is my script:
unsigned long start=0, finish=0, elapsed=0;
...
0
votes
1answer
49 views
Test level shifter with Arduino and some data
Below is a reference to a logical level bi-directional converter (aka level shifter) I purchased on Ebay. I've soldered the 12 pins (6 for each piece) to the level shifter so that it fits on my bread ...
1
vote
0answers
21 views
Can d2xx connect to an arduino mega 250?
I am trying to replace a device which used a FTDI chip (http://www.ftdichip.com/Drivers/D2XX.htm) to get USB to serial. I need some more code on the chip, so I want to use an arduino mega 2560 ...
1
vote
0answers
23 views
Controlling dynamixel AX12 by Arduino
Actually, i would like to control 12 motors of AX-12 using Arduino .. I could control just 2 motors. However when i send a command to the 12 motors they don't move and one or 2 of them move ...
0
votes
1answer
78 views
arduino mega overheat when connected to TFT 7" and TFT shield
I have bought a 7" LCD (TFT01-7) and a shield to make it work with arduino mega (http://www.elecfreaks.com/store/lcd-tft01-mega-shield-v10-p-214.html), but when I upload my code to the arduino and ...
0
votes
2answers
47 views
My code is stuck in a loop involving Serial.read. How can I break this?
So I'm running a program that involves both Arduino and a Raspberry PI and they are communicating between the Serial port. As you can see below when my an emergency stop door, involving a magnetic ...
-1
votes
3answers
100 views
ESP8266 sends webpage to client, but html codes appears in browser instead of webpage?
I am using ESP8266 with Arduino MEGA. ESP8266 is powered 3.3v via voltage divider, which is taking 5v from arduino and converting it down to 3.3v with the help of 5K and 10K resistors. AT commands ...
1
vote
0answers
36 views
PIR sensor and sleep (interrupt) on Mega2560
So I was starting to gain some knowledge on the PIR sensor and how to let the arduino 'sleep' while there is no movement detected by the PIR.
So I found the following code somewhere and looked fairly ...
0
votes
2answers
32 views
'Keyboard' not found when trying to use Keyboard.write from the <Keyboard> library
I am trying to get a response from the arduino when I press a key, but when I try to upload the code it says that it could not find 'Keyboard' with 'Keyboard.write'. Here is my code. Ignore the bits ...
1
vote
2answers
44 views
Draw polygon on LCD from GPS latitude and longitude
I'm working on a personal project (a usefully tool based on ublox GPS and Arduino Mega that can measure distance between 2 points, compute area, speed, save data on SD card)
Now I want to add new ...
1
vote
0answers
13 views
Get MP3 play length
I'm creating a project where music gets played that is the same length or slightly shorter than the given time (minutes:seconds). For this I have a Sparkfun MP3 shield, which also has a microSD slot.
...
0
votes
1answer
53 views
No Response from ESP8266 WIFI
I am getting no response back from an ESP8266 WIFI with arduino mega using library ITEADLIB_Arduino_WeeESP8266.
//serial monitor response
setup begin
FW Version:
to station + softap ok
Join AP ...
1
vote
4answers
45 views
Proper error logging using Arduino
Coming from a C# background where I do logs for every application, and given that I will be using the Mega for most projects and therefore have the memory available to do so, I want to incorporate ...
1
vote
0answers
24 views
Arduinino & Max7219
Im using a MAX7219 and 6 (six) seven segment displays
I used my own board and two purchased on ebay - no difference in operation.
MOSI, and CLK are correct and verified with my scope (Tektronics)
CS ...
1
vote
0answers
8 views
2 reciver XBee modules connected to arduino MEGA
I'm doing a robotic arm project, I have two transmitter systems (sensors connected to 2 arduinos) and should send for the receiver side (each arduino suppose to take the hand-gestures and send it to ...
1
vote
0answers
15 views
incoming GSM data stored as variable in code
I am using an Arduino Mega board with a SIM900 GSM.
My goal is to be able to text the GSM with a value of two digits (ex: 79) and then store that value as a variable in the code.
I know how to set ...
1
vote
0answers
32 views
Arduino GSM receiving text and then storing value as a variable in code
I am using an Arduino Mega board with a SIM900 GSM.
My goal is to be able to text the GSM with a value of two digits (ex: 79) and then store that value as a variable in the code. I know how to set ...
3
votes
2answers
69 views
using enums in functions
Given the following enums
enum RelayState { RELAY_OFF = HIGH, RELAY_ON = LOW };
enum class CrossingZoneState: uint8_t {
CROSSINGZONE_CLEAR = 0, // no train in crossing area, also initialized ...
1
vote
1answer
62 views
Detection of DS18B20, arduino Mega
I just bought a DS18B20 temperature sensor. I can't detect the device when i run this code :
#include <OneWire.h>
#include <DallasTemperature.h>
// Data wire is plugged into pin 10 on ...
0
votes
1answer
46 views
Arduino Uno Multiple Modules
I have an Arduino Uno and I want to connect;
RFID Reader (RC522)
WiFi Module (ESP8266 ESP-01)
SD Card Module
RTC (Real Time Clock - DS1307)
Same time but pinouts are not enough. Is there a way to ...
0
votes
1answer
15 views
Dealing with TCCRx
I am totally beginner in Arduino, and i want to ask some questions :
TCCR1B = (TCCR1B & ~(0x07<<CS10)) | (2<<CS10);
What does the previous line mean? with good explaination ...
0
votes
2answers
66 views
Arduino and 2 Adafruit Fingerprint modules working together
I want to do a project with fingerprint access control. But my client wants one on both sides of the door (inside and outside). Now I am using this product Adafruit Fingerprint module but I don't want ...