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
14 views
Control an audio amp board with arduino
I have a bluetooth audio board with play/pause, next, previous and volume buttons. I want to toggle these buttons with an Arduino without using mechanical devices like a servo.
Something like ...
0
votes
1answer
16 views
Mega 2560 r3 problem
my new mega 2560 r3 only has the two red led working one of them blinks all the time and no other lights at all and this problem is common with many of the Mega 2560 r3 parts that I bought so far ??
-1
votes
2answers
17 views
Problem with combination of Bluetooth and RF 434MHz with Arduino Mega
I want to receive text from Bluetooth from an android phone to Arduino Mega. Then I want to send that text to other Arduino UNO through RF 434MHz.
Here is my code for Transmitter.
#include <...
0
votes
1answer
31 views
Voltage on analog pin arduino when arduino turned off
So can I put a voltage from 0v to 5v on an analog Arduino pin before actually turning the Arduino on? And still read the analog pin correctly when turned on?
0
votes
2answers
37 views
How do I read data from Parallel port DB25 over my Arduino?
I am using this program. However, I am getting garbage values only.
Do revert as to how can I get proper values over my arduino.
/**********************************************************************...
0
votes
1answer
27 views
Using SPI Interrupt causes two servos to lose functionality
My Arduino MEGA clone (ATMEGA 2650) reads SPI data as a slave using an interrupt.
There are also two servos that make an arm (shoulder and elbow).
When I comment out the line that attaches the SPI ...
0
votes
0answers
9 views
Controlling two arduinos with simulink
I want to control 2 arduinos(one uno and one mega) with Simulink Support Package for Arduino as I want to carry out the following exercise. This is required to perform a hardware in loop test in which ...
3
votes
1answer
47 views
Mega 2560 & smoking/burning 5v requlator, probable cause?
Problem: board seriously fried.
Desired outcome: measures to take in future.
Background:
This project has been running for about a week on the 2560, and previously for a few weeks on an UNO clone. ...
1
vote
1answer
38 views
How do I use the Arduino Mega as a 16-bit SPI slave?
I have to interface an Arduino Mega as a slave with a SPI master running at 1 MHz SCK. The master will send and ask for two bytes in a single transaction. I tried using the following code for the Mega....
3
votes
0answers
11 views
Arduino Mega Serial2 seems to stop functioning mid-sketch
thanks in advance for the advice.
I've got an Arduino Mega talking to a Cavro XL-3000 pump. After a lot of time I got the arduino successfully controlling the Cavro. However, the big problem I have ...
0
votes
1answer
32 views
Arduino Simulator for Windows that can be detected by Arduino IDE through a Virtual COM Port
Hello is there an Arduino Simulator for Windows that can be detected by Arduino IDE through a Virtual COM Port?
I've seen simulator online but I can't seem to find a simulator that can be programmed ...
-3
votes
0answers
20 views
IoT project: control 24V compressor
Im building a IoT Refrigerated Mailbox connected to IBM Bluemix.
I am planning to run 24V DC compressor from my Arduino. with few other sensors (Proximity,LED light, LED screen) and also GSM/GPRS ...
0
votes
1answer
13 views
Serial 3 vs Software Serial
So I have a program that works great on the Mega, it uses serial 3 to read and streams out to the USB (I posted a previous question which someone answered) I tried to use Serial (D0) to read and then ...
0
votes
1answer
36 views
Running multiple motors simultaneously
I have this code for a DC motor (using this library)
#include <Arduino.h>
#include <Vnh2sp30.h>
// ENA A B PWM CS inv
Vnh2sp30 mtrL( A0, 7, 8, 5, A2, 0); ...
-1
votes
0answers
13 views
Non blocking stepper motor control for A4988 [closed]
I have an Arduino MEGA board. Is there a way to make it control/drive an A4988 hardware for Stepper motor in a non-blocking way, much of the libraries are blocking causing Arduino not able to control ...
0
votes
0answers
15 views
Non blocking motor control for VNH2SP30 [closed]
I have a Arduino MEGA board, is there a library that is non-blocking that can drive a VNH2SP30 device?
3
votes
1answer
118 views
Serial question : Going from Mega to Uno
I have a code sample that uses serial3 (RX3 on a Mega) which I want to try and get working on a Uno. It reads on RX3 and streams to USB. What I had read, you use Serial for RX0, however Serial seems ...
0
votes
0answers
10 views
MT9D111 Camera and Arduino Mega Wiring
Has anyone successfully wired up the MT9D111 with an Arduino Mega board and if so what is does the wiring diagram look like? Also do you have a sketch to go with it? The closest thing I could find was ...
0
votes
0answers
26 views
Does increasing PWM frequency effect on IC temperature
I have an application that requires to increase the PWM frequency. There are some instructions allowing this up to 36,000 hz (have not tried this myself). Has anyone ran the frequency of the Arduino ...
1
vote
1answer
14 views
Receiving a packet via XBee radio
I am sending a packet of sensor information over an Arduino XBee setup. The first byte of the packet is the packet header for synchronization. The second byte is the number of bytes in the packet (...
1
vote
1answer
52 views
Motor Control Help
Here is my objective:
If the value of EMGv is at or above 900, start moving the motors left. The motors should continue to move left for a maximum of one second, provided EMGv stays at or above 900. ...
2
votes
1answer
33 views
Running Stepper motors (at least 2) at the same time
Is there a way to run a Stepper motor with Arduino MEGA 2560 with A4988 driver component.
I am using this https://github.com/laurb9/StepperDriver library and with this code,
Serial.println("...
1
vote
0answers
23 views
XBee radio dropping bytes?
I am using an XBee radio setup to transmit bytes over a distance of approximately .25 miles. For the first 20,000, or so, transmissions it was completely error free. However, once there was a single ...
1
vote
1answer
34 views
Limiting motors to a specific position using while and if loops
I am currently building a prosthetic hand using an Arduino MEGA, an Advancer Tech Myoware sensor, and 3 TB6612FNG Dual H-bridge breakouts. I have the EMG sensor sending an analog value to the Arduino ...
2
votes
0answers
16 views
MKS GEN board pinouts for Arduno MEGA
As per this SO Is the MKS GEN V1.2 compatible with Arduino IDE as Arduino MEGA Board?, the MKS GEN board is an Arduino MEGA board mixed with other circuits.
My questions is how does it correlate ...
1
vote
1answer
21 views
Is the MKS GEN V1.2 compatible with Arduino IDE as Arduino MEGA Board?
I need to do a Servo controller using Arduino and I have a spare MKS GEN V1.2 board right now, looking at the documentation from here http://reprap.org/wiki/MKS_GEN it seems this board is actually an ...
4
votes
2answers
83 views
How to move my robot in the right direction?
After all there is more question poping up then answers i decide to upload the pdf where is everything writen, like the wire, motor type and what we can and can't use. Here is the link pdf format of ...
1
vote
1answer
27 views
Which external programmers work reliably with Arduino MEGA?
When looking for alternate external programmers (ISPs), I am noticing that many are not Arduino MEGA 2560 compatible (e.g. Pocket AVR Programmer, USBtinyISP).
I am looking for a reliable external ...
5
votes
4answers
1k views
ArduinoUNO/MEGA, Is there a way to exceed 256 in analogWrite
I am using Arduino UNO/MEGA, I want to
analogWrite(pin, val);
where the value is 0-1023.
How can I make that ?
Thanks.
0
votes
1answer
53 views
Arduino and industrial stepper driver
For a project I need to use an industrial stepper driver with an arduino. There it is: http://www.omc-stepperonline.com/bipolar-stepper-motor-driver-max-4a-current-40vdc-input-16-subdivision-st6600-p-...
0
votes
1answer
25 views
Stepper motor release L298N [closed]
I'm Driving a stepper using a L298N driver and an arduino mega. I want to release the stepper after the movement so it can swing freely, because it gets hot, and it doesn't need to hold position.
...
2
votes
0answers
46 views
Faster output of Serial.print() data coming from TSL1402R sensor [closed]
I am reading a TSL1402R with an Arduino Mega2560. The code is based on the sketch from the arduino playground here:http://playground.arduino.cc/Main/TSL1402R
The application is a digital caliper for ...
0
votes
3answers
446 views
Problem understanding code [closed]
This is a segment of an Arduino sketch, that I am trying to understand.
I know that the purpose of the entire code is to control 2 stepper motors linked to their respective drivers which are linked ...
1
vote
1answer
45 views
Regarding Arduino Mega hardware serial
I have a doubt interfacing with fingerprint module (R305) with the Arduino Mega.
I have been able to interface it to Arduino Uno before but not Arduino Mega so far.
I have used the Mega's hardware ...
1
vote
0answers
36 views
Getting data from web form [duplicate]
I am using an EthernetServer and EthernetClient with Arduino in order to make a simple webpage. I have a web form for a user to enter various codes that can reset data stored on the back end. However, ...
1
vote
1answer
45 views
Arduino Web Server: Receiving response from web form
I am using an Arduino Mega and I have a basic webpage built using EthernetServer for the connection and EthernetClient to write the HTML to the client. I have a simple web form:
client.println("<...
-1
votes
0answers
77 views
Arduino Binary to Decimal on 5x7 dot matrix display
I need some help regarding binary to decimal conversion on arduino i wants to make a dot matrix moving display using 3 of 5x7 matrixs first matrix shows the Arrow sign which moves upside like if i ...
1
vote
1answer
30 views
read/write data from 2 arduinos simultaneously over python
So for my project I have one Arduino Mega hooked up with a quadrature rotary encoder which is connected to the Computer. The other Arduino Uno is connected to a circuit I build which in turn is ...
3
votes
1answer
66 views
Is there a counter library in Arduino?
I'm looking for a counter that can be incremented and will overflow with predictable behavior, preferably reset to 0 on overflow. I've tried using integers for counting but I'm getting weird overflow ...
3
votes
3answers
42 views
Entering integers as bytes in serial monitor
I am doing some byte manipulation in Arduino, but when I enter an integer into the serial monitor, such as 1, and my program stores it as byte incomingByte, the value stored in incomingByte is 49 and ...
0
votes
1answer
53 views
Why change the variable content? [closed]
I don't understand why change uidList[reader] variable, when doesn't run more to the else. I use in this test only the "0" reader.
First loop go to the "else" and fill the uid to uidList[reader]. (...
0
votes
0answers
26 views
ArduinoISP external programmer produces verification error?
I am using an ArduinoISP external programmer to upload a sketch to an Arduino MEGA.
I set the processor type to MEGA 2560, and use Ctrl-Shft-U to upload using a programmer. My programmer is set to ...
2
votes
1answer
31 views
Blank.txt at the End of Transmission
I'm using my HC-05 (Master) to receive strings from a sensor (Slave), each string is suppose to have 7 items divided by ',' like so "a,b,c,d,e,f,g". I also have to write these strings in a .txt file ...
1
vote
0answers
28 views
Ethernet module ENC28C60 doesn't connect to internet when DHCP on router is disabled.
Update: Examples from library are working if DHCP is enabled!
Using this library I try to connect with static IP but it always say DNS failed. Ethernet module is blinking that means is good ...
0
votes
1answer
49 views
Alter baud rate after being certain event
I'm using my HC-05 (Master) to receive strings from a sensor (Slave), each string is suppose to have 7 items divided by ',' like so "a,b,c,d,e,f,g". But it isn't always received in such manner, ...
0
votes
1answer
28 views
How to use different device address for MCP23017 so I can use multiple chips?
I want to use more than 3 MCP23017-E/SP DIP28 chips so I can use many digital pins. I use Adafruit-MCP23017-Arduino-Library. I tried this solution but only device address with 0x00 is working.
The ...
0
votes
0answers
25 views
Wiring from Linux RS-232
So I'm using an Arduino Mega 2560, with a MAX3232-based RS232 to TTL converter, connected to a CF-19's DB9 serial port.
I connected the two boards as following:
RS232 to TTL Arduino
VCC ...
0
votes
1answer
37 views
Problem fetching data from MPU6050
I am new to Arduino. I have an arduino mega board, which I need to interface with MPU6050 accelerometer-gyroscope module.
My connections are
Arduino_SCL->MPU6050_SCL;
Arduino_SDA->MPU6050_SDA;
...
-2
votes
2answers
53 views
Do I use an Arduino or an ARM based Launchpad board for my commercial project? [closed]
I want to use a board for an Industrial Project, which is based on temperature sensing, sharing and data storage.
Which board do I use?
Will it be reliable for a long span of time?
Will it be ...
-1
votes
2answers
57 views
Is it possible to detect stairs using ultrasonic sensor? [closed]
Can anyone give suggestion. I am working on project that helps visually impaired people to detect obstacle/stair..... so the thing that I want to ask, is it possible to detect stairs or pit using ...