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.
2
votes
1answer
19 views
How to interconnect multiple Arduinos with a Rpi to control home-lights/switches
While planning the lightning infrastructure (wall-switches and lights) of my new home (it's still under-construction) I choosed to go through the "automated route" way and due to my background (I'm an ...
1
vote
2answers
35 views
Are there any Analog pins on the mega that can not be used as Digital?
I am using both Arduino nano and Arduino mega boards in my projects. I got a nasty surprise the other day when I learned that, on the nano, Analog pins 6 and 7 can not be used as digital pins.
Are ...
0
votes
3answers
27 views
How to store IR data needed for AC controll in less space?
I'm trying to controll an AC unit but the issue is space - right now, I store the data like this:
consts PROGMEM unsigned int Signal_Heat_Fan0_Temp30[] = ...
0
votes
0answers
16 views
Portability and selection of Arduino
I have written some code for Arduino Uno, which is an ATMEGA microcontroller based device. Can I port the same code over to Arduino Due, without having to make any changes. Arduino Due is a ARM based ...
1
vote
1answer
27 views
Execute Code sent over Serial
I was wondering if its possible to send code to the Arduino, and then have it execute this code.
What I'm trying to do is use an Arduino Mega with a bunch of stuff connected to it send code to an ...
1
vote
2answers
32 views
digitalWrite queued signals?
I have this simple code who send a signal to a android phone when I press a button:
const int botonPinD = 8;
const int relayPin = 12;
int retardo = 100;
int finBoton=1000;
void setup() {
...
1
vote
1answer
23 views
Is Roboteq motor driver compatible with Arduino?
I'm planning use Roboteq motor driver for 24V brushed DC motor but I can't be sure that it's true or wrong. You know, Roboteq controller is too expensive and I don't want to spend money in vain. Have ...
0
votes
1answer
39 views
How can i read serial data into a string until a certain character is recieved?
This is not a duplicate of my other question. This question deals with reading specific data within a serial stream. The other question deals with reading and adding data into a manageable data ...
0
votes
1answer
26 views
How would i capture and split serial data?
How would i capture the following serial data, and split it into parts?
<Alarm,MPos:0.000,0.000,0.000,WPos:0.000,0.000,0.000>
the parts i need from this is
Alarm - This is a state. i.e Alarm, ...
1
vote
2answers
29 views
Function that returns a Structure
I want to create a structure called CarSpeed it has 4 int FR,FL,BR,BL (FrontRight,..) ; and i would like to create a function that returns this structure :
ActualSpeed Readspeed(void)
{
code to ...
1
vote
1answer
21 views
Arduino Program uses less RAM then expected and doesn't run
I am trying to make a program for my Arduino that will run 4 motors with random actions (forward,backward,left,right) and execution is determined by a random number generator. When I compile there is ...
0
votes
3answers
18 views
Reversed Input Voltage Arduino Mega timeout communication with programmer error
On the barrel connector I accidentally reversed the input voltage to an Arduino Mega. The center post received ground while the outer connection received +12DVC, basically I have the Arduino -12VDC. I ...
0
votes
0answers
16 views
Wifi.status() always returns WL_NO_SHIELD
I've an Arduino Mega 2560 R3 and recently bought a Wifi Shield CC3000 from ebay http://www.ebay.de/itm/201405512301
They write that the firmware has the version ServicePack 1.11.1.
The WiFi shield is ...
0
votes
1answer
38 views
adding a dead band to my motor and gearbox
I have a motor and gearbox that has limits and a pot built in.
I have some code what drives the motor one way to when it hits its limits takes a value and drives the other way and takes a value, then ...
0
votes
3answers
57 views
How to wire up 4-digit 7-segment display?
I have an Arduino Mega and the CL5642BH, a 4-digit 7-segment display. I found very helpful code here, but I don't understand how to wire it up on the breadboard.
The display has 12 pins: 6 on the top ...
1
vote
0answers
31 views
How can Arduino Mega2560+Wifi Shield 2.0 (seeedstudio) receive data from database in xampp server on my pc
I'm trying to connect my Arduino Mega via wi-fi to my xampp server.
My main objective is get a value at my database and store it on a variable in Arduino code. With this new variable I'll be able to ...
0
votes
0answers
16 views
Parsing UDP text from a Command using UDP
I want to send a parameter from my computer (i.e using hercules software) using UDP protocol to my Arduino with ethernet shield to turn 2 LED on and off (each of them).
The command i'm using is :
$A,B
...
0
votes
2answers
32 views
Buttons for LED strip only work when held down
I am trying to make a 24 button board that assigns different methods to each button. When a button is pressed, it should interrupt the method of the previous button and begin the new method. ...
0
votes
2answers
26 views
Multiple buttons activating different methods for an LED strip
I am trying to use different buttons to activate different methods for an LED strip. However, when one button is pressed after another has been pressed, I want it to interrupt the first buttons method ...
1
vote
1answer
47 views
Help with LCD's menu and seeing values continuously
I want to see the voltage data using void volt();, when I go to the "Item2SubItem3" within void menuChanged. Now I can only see the data at that time: how can I refresh the value every second?
void ...
0
votes
1answer
29 views
Hi-speed external ADC
I would like to detect signals in nanosecond scale. For that, an ADC with at least 500 MSPS is required.
My question is if its possible to use an external ADC with 500 MSPS with a 16MHz Arduino Mega? ...
0
votes
1answer
9 views
Arduino Mega 2560 R3 with Shield Model Wireless SD R3 not working
Recently I've bought an Arduino Mega 2560 R3 and a Shield Model Wireless SD R3 from http://www.amazon.de/Arduino-A000065-Netzwerkkarte-Wireless-SD-Shield/dp/B00L1FO860. I try to run the example from ...
0
votes
2answers
42 views
How do pins on an arduino mega 2560 work?
I got a copy of Arduino from a local retailer here (it's a local copy and I'm pretty confused with how the pins actually work).
I know basic electronics so far, there should be two pins for every ...
2
votes
1answer
40 views
Arduino LCD Simple Problem
Hi my lcd doesnt display that i was expected. Can anyone help me???
RS-->22
RW-->GROUND
E-->23
D4-->24
D5-->25
D6-->26
D7-->27
#include <LiquidCrystal.h>
LiquidCrystal lcd(22, 23, 24, 25, ...
0
votes
1answer
23 views
Arduino messing up as slave over i2c
So I have an Arduino Mega2560 and a Raspberry Pi hooked up through i2c. The pi is acting as the master while the Arduino is the slave. While sending data over I2C the int message gets messed up and ...
0
votes
1answer
28 views
How do I compile the Marlin firmware?
I have a folder of mostly .h and .cpp files for the Marlin firmware (3D Printing) from here.
How do I compile that so I can upload it to my Arduino Mega with Ramps?
1
vote
1answer
62 views
Ethernet shield not have MAC address sticker [duplicate]
Hi everyone I recently bought an Arduino Mega and Arduino Ethernet Shield. There are lots of forum posts that say the shield should have a MAC address that is written on the back side of shield, but I ...
2
votes
1answer
67 views
Reading a part of bitmap image on Ardunio
I'm pretty much a beginner when it comes to programming and have only recently started learning C++. Right now I'm stuck trying to covert a bitmap into a binary array. This is for a Robotics ...
0
votes
1answer
34 views
Arduino User Input
Is it possible to accept input from an end user via terminal, or some other application?
I want to create a prototype for a friend, but he'd need to enter his wireless network and password to ...
0
votes
1answer
20 views
Analog input weirdness (barrel connector vs USB power)
I noticed that my Arduino Mega performs differently in how it presents values from say analog input A0, depending on whether it is being powered by USB or by a fresh 9V battery wired and connected ...
0
votes
1answer
31 views
unresolved overloaded function type for Wire.onReceive
I am attempting to make an I2C slave out of my Arduino and I can't get past the Wire.onReceive function. Here is my code. The documentation says to just add a function that has the style of void ...
0
votes
1answer
43 views
how to build rc transmitter and receiver with an old rc transmitter
I've got an Arduino Mega, an Arduino Nano, two NRF24L01 wireless modules and a old Multiplex Transmitter system.
I want to get the PWM signal and send it to the other arduino which should control the ...
0
votes
1answer
49 views
Uploading Marlin Firmware To Melzi-ATmega1284p
I'm trying to flash the Marlin Firmware to my Prusa i3 3D Printer, which uses Melzi 2.0 board. Melzi is a variation of Sanguino, and Sanguino is a variation of the Arduino.
The problem is that the ...
0
votes
0answers
35 views
Make a GET Request GPRS
I'm building a weather station that sends the data to a webserver via GET request.
I was wondering if you guys can look into my code and help me.
I looked all over the internet and can't find ...
0
votes
1answer
72 views
NRF24L01+ PA not working with Arduino Mega (works with Nano)
Full disclosure: I'm a newbie.
I've got an Arduino Nano and a Mega, and a pair of NRF24L01+ PA modules (exactly these: http://www.elektrotedarik.com/Images/Urun/11122013173429.jpeg)
I'm trying to ...
0
votes
1answer
27 views
Arduino Mega as a USB device
My need is to connect an Arduino board (any board that has around 3 UARTs support) to a host PC via USB and expose the 3 UART connections as 3 USB devices (say /dev/ttyUSB0, /dev/ttyUSB1, ...
0
votes
1answer
22 views
What are the distances between Arduino Mega connectors?
I am trying to build an Arduino Mega shield. For that, I need to know the exact distances between the different connectors.
0
votes
1answer
34 views
What are the connectors used in the arduino mega?
I am trying to build a shield for an arduino mega.For that i need to know the type of the female connectors that are soldered in the pins of the arduino mega in order to choose the correct male ...
1
vote
1answer
40 views
Using union to return a range of bits from a data frame: wrong approach?
I'm working on an adaptation of Jason Leyrer's Guitar Hero Library for Arduino. My version is for a DJ Hero controller, and I've also borrowed some code from this Arduino forum thread: topic=120527 ...
0
votes
1answer
25 views
nRF2401 communication (extended vs normal)
Communicating to the antenna-less version from an extended range nRF2401 seems to produce some strange results...
At a distance, the receiver seems to receive a number of values instead of one. For ...
2
votes
1answer
82 views
Printing SD card file contents on LCD
This is a part of my program which reads data from file stored in SD card and displays that on an LCD screen.
File dataFile = SD.open("1165.txt");
if (dataFile) {
Serial.println("File ...
0
votes
0answers
58 views
Monster moto shield + Arduino +Pololu 12V, 29:1 Gear Motor Encoder hardware problem
Overflow enthusiasts!
I am trying to build a balancing robot with two wheels, using the polulu gear motor as mentioned above. In order to have a strong motor driver,the monster moto shield is used in ...
0
votes
0answers
15 views
Which bluetooth module should I buy?
I am doing a wireless rover using arduino mega 2560 that can be controlled by a smartphone and a PC. Which bluetooth module would fit me? Again I want to control it both by my Laptop(Built-in ...
1
vote
2answers
98 views
How much numerical precision can the ESP8266 achieve?
Background: I am trying to port this solar tracker code by Gabriel Miller to run on the ESP8266. Now I'm not a particularly great coder, but I'd like to give it an honest try.
As of recently, the ...
0
votes
1answer
18 views
USB and UART simultaneous power to Arduino?
I am connecting an Arduino Mega (Crius) to a Intel Embedded processor (Minnowboard) via the following to Peripherals:
Minnowboard USB -> Arduino (to flash the micro-controller)
...
0
votes
1answer
37 views
Issues with Stacking Ethernet shield and USB Host shield
I want to stack Ethernet shield and USB host together with my Arduino MEGA 2560.
Each of these shields works fine separately.
Is it necessary to contact bootloader pins with each shield and arduino ...
0
votes
2answers
42 views
Arduino restarts problem
I want to assign -1 to count variable again when count == 16 but when I have assigned -1 inside the if condition I have marked below in the code, the Arduino restarts.
Can anyone guess what is wrong ...
-1
votes
2answers
66 views
Can I open files of my computer using an Arduino? [closed]
Can I code my Arduino to open a file when an input from my sensor changes?
0
votes
1answer
79 views
Arduino Web Server and Relay Module
I am working on a web server project for work. I have a web server setup with an Arduino Meg2560 with Ethernet. I also have a 16 relay board connected to Ethernet with its own IP. I wanted to see if ...
0
votes
1answer
49 views
Arduino communication with ROS via UART
I am trying to program an Arduino Mega(Crius) from a Minnowboard Max A2 via an UART (Hardware Flow Control Off) interface.
I can successfully communicate with the ROS (robot Operating System) on the ...