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
37 views
Is my Arduino mega dead?
I accidentally short-circuited my Arduino mega(ended up connecting the 5V and ground pins). Physically from observation nothing seems to be burnt on the board but I am not able to upload new codes to ...
-2
votes
0answers
21 views
cooking hacks Blood pressure [on hold]
anyone who used the cooking hacks blood pressure?
I want to gather the data from the BP to VB.net but the problem i cant get the latest data from the bp.. I can only get the latest by opening the ...
1
vote
1answer
31 views
Sim800L HTTP post request stop working after a while
I am desperate to get my SIM800L module (http://www.ebay.co.uk/itm/SIM800L-GPRS-GSM-Module-Board-Quadband-QUAD-BAND-Antenna-for-MCU-Arduino-/321992759287) sending POST requests for a long period of ...
0
votes
0answers
23 views
Unable to recieve UDP data using arduino mega 2560 with enc28j60
I am newbie with Arduino and I am using Arduino mega 2560. I am trying to send and receive UDP data using enc28j60 Ethernet sheild. For this i download library and sample code from here. Now I load ...
2
votes
2answers
34 views
Arduino PWM Pins Interrupt
I am creating pwm from an arduino pin with 50% duty cycle. I just want to know how can i detect its every falling edge using timer interrupt? I don't want to connect that PWM pin to an external ...
-1
votes
0answers
51 views
How to create a class for arduino and how to access its variables from the sketch [on hold]
I've already written my own arduino library for some purposes and it is working. I wonder how to write classes for my arduino project so that they can communicate with each other?
Secondly, as I ...
1
vote
1answer
12 views
Sensor/servo shield for Arduino Mega
Is there Arduino shields with blocks of 4 pins that you can plug your servos into and use the fourth pin as signal pin to the Arduino Mega board?
1
vote
2answers
51 views
How to write array of functions in arduino library?
I've nine functions each of type void as follow:
void zero();
void one();
void two();
void three();
void four();
void five();
void six();
void seven();
void eight();
void nine();
I've put all these ...
0
votes
1answer
16 views
Can I use the TLC5940 LED Driver if I'm already using other SPI devices on my Arduino mega?
The way I understand SPI is that 3 wires are shared (MOSI, MISO, & SCHK). The slave select is pulled high when you want to write to a specific device. The 3 shared wires can be daisy chained. The ...
0
votes
4answers
363 views
Will enabling parity bit actually decrease corruption?
I have an Arduino Mega communicating with a Bluetooth adapter through one of the auxiliary hardware serial ports. It works, but there appears to be a corruption rate of approximately 1 in 200 small ...
3
votes
2answers
53 views
If a Timer is used, disabling some PWM pins, can I still use those pins for Digital write?
It's my understanding that when a Timer is used on an Arduino (in my case the Arduino Mega), it can disable analog write on some PWM pins, which pins depends on the Timer being used. For instance on ...
1
vote
1answer
26 views
Connecting Winbond W49F002U-12B to Arduino Mega
I am trying to connect a CMOS flash memory Winbond W49F002U-12B to an Arduino Mega, but failing.
What I did:
Read the Winbond W49F002U-12B datasheet. The key points are: CE - chip enabled; OE - ...
0
votes
1answer
19 views
Store TinyGPS++ latitude value into a variable of type string or float
I want to get the GPS ordinates in degrees with 6 decimal accuracy. I can obtain this by creating a gps object with TinyGPS library. but In the TinyGPS example codes, its written
...
-1
votes
1answer
27 views
High Torque motor humming but not turning [closed]
I am making a self-balancing robot and using a 30 kgcm and 200 rpm 12 V DC motor. When I am applying PWM to the enable pin the motor is humming not rotating. Please help I dont why it is happening.
...
1
vote
1answer
13 views
Driver shield providing 24+ pins at 100mA (for Mega 2560)
Do any shields (or similar boards) exist to let the Mega 2560 (or Due) output a full 100mA per pin on at least 24 pins, in a digital on/off fashion? I know there is a motor shield, but it looks to ...
3
votes
0answers
64 views
SPI with a level converter in the other end of connection
I have an Arduino MEGA hooked up with a NRF24L01, and working nicely, talking with another Arduino Uno. It works as described, power supply to 3.3V, and SPI lines (MISO,MOSI,CLK) connected directly to ...
1
vote
1answer
41 views
Don't know how to work IMU and NRF24 together
I'm having problem on how can I use IMU and NRF24 together.
This is the code that i'm trying to use,
/*
Copyright (C) 2012 James Coliz, Jr. <[email protected]>
This program is free ...
0
votes
1answer
59 views
Why doesn't my object's method return back to my caller method?
I am creating a miniature computer using an Arduino, and I am creating a full-scale interpreter for it. Everything works, and the code begins to run after calling the runCode method, but once the run ...
0
votes
0answers
23 views
Is it possible to run the Teensy to the Arduino?
I'm already done copying/pasting the libraries that I know is needed to run the program, but I wonder why I always get this error every time I tried to run the code. What do you think would be the ...
1
vote
1answer
48 views
Unpacking arduino binary data on a python sketch
as a follow up to my earlier post Simultaneously reading data from multiple serial ports, I am stuck trying to develop a python sketch that can read the incoming serial data from the com port on my ...
0
votes
0answers
31 views
Arduino Bluetooth data (large data files) transfer efficiency using HC05 module
Im using an HC-05 Bluetooth module connected to my Arduino MEGA. The Arduino has an SD card with some data files stored (sensor readings). After the sensor readings are done, the Arduino then connects ...
1
vote
1answer
44 views
Physical dimensions(size) of the new MKR1000 board?
Anybody here knows the physical dimensions(size) of the new Aduino MKR1000 board?
2
votes
1answer
31 views
“tamper” circuit of a reed switch: can I connect the two wires to an INPUT and an OUTPUT pin?
While working for the automation side of my new house, I'm currently in the process of installing several reed switches on top of external doors and windows.
Even if this could be used as a ...
2
votes
0answers
31 views
Arduino Mega And L298N Motor Driver Board (Controlling using AccelStepper Library)
Can someone help me how to use AccelStepper library in setting the origin position of the stepper?
We are using a tact switch and an L298N driver for the stepper motor in setting the origin of the ...
2
votes
1answer
24 views
Mysterious behavior when using objects
I am writing a project that involves using complementary filters to combine gyroscope and accelerator readings in 3 directions. The relevant code is below.
class CompFilter {
public:
long ...
0
votes
1answer
50 views
MQTT broker and Arduino + Sensors NRF24L01
I am newbie, I have never used MQTT before, so I have some questions.
Here is my topology.
I have several sensors (Arduino Pro Mini + NRF24L01) and main server/handler(Arduino Mega + Ethernet Shield ...
1
vote
2answers
21 views
21 Servo on Mega?
I want to use 21 servo (SG5010) motors using Mega board. Is it possible to do this?
A possibility is all the servos will be operating at the same time, with average load of ~3.5 KG, and each using ...
1
vote
1answer
22 views
Data changes when working with classes
When I pass an array, and it's len to the constructor of a class. I store the length, and access it later, it's value changes, seemingly at random.
#include "Arduino.h"
#define NUMSENSORS 2
const ...
1
vote
1answer
25 views
Arduino mega R17 led blink continuously
I have bought 10 Arduino Mega 2560 clones and all of them have the same problem. When I connect the to my PC I get a message that windows cannot recognize that device and the LED at the board in R17 ...
-1
votes
1answer
53 views
Control brightness of 20 watt street LED light using Arduino
I have searched google and I now know that if we change the resistance, we can change the brightness of an LED, but I was wondering how to change resistance by using a micro controller.
0
votes
1answer
28 views
Ublox GPS with Arduino Mega 2560 not working
recently I bought a GPS module (ublox neo-6M-0-001, http://www.ebay.de/itm/311397889516) for my Arduino Mega 2560.
I connect vcc and gnd (LED at GPS module glows blue and sometimes blinking).
GPS ...
2
votes
2answers
60 views
Why is my Arduino still working?
I read an article that said that shorting an IO pin to ground would destroy the pin. I've done this before when I connected a buzzer to an IO pin and to ground without resistors, the buzzer is only ...
0
votes
1answer
33 views
How to limit the number of message that an Arduino sends to a phone without terminating it
I just stayed on delay() since that is the only thing I know but the thing is delay() cannot be interrupted. What I'm trying to achieve with this code is:
When the soilSensor detects moisture it ...
1
vote
0answers
77 views
Two MPU 9250 connected to one arduino (Code of the MPU6050 edited for MPU9250)
I have done a lot of tries to make my two IMU work with my arduino. I'm also done with many research about it and I found this code:
// I2C device class (I2Cdev) demonstration Arduino sketch for ...
1
vote
1answer
28 views
Is a power off sufficient to avoid problems with the Watchdog on Arduino Mega 2560?
I'd like to offer some context about what I'd like to do because I might have misundertood something.
I'm trying to reduce power consumption on my device, an Arduino Mega 2560, and I've found this ...
0
votes
1answer
58 views
How to connect two IMU in one arduino board?
The code below works fine when one IMU (MPU9250). What I want to know is how can I edit this code to work perfectly with two IMU (MPU9250) in one arduino board ?
Hope someone can help me. THANKS :)
...
0
votes
1answer
27 views
Upload Code on Arduino Mega using FTDI Cable
I would like to upload my code to the Arduino Mega 2560.
The USB is fried hence I have to use the FTDI
I've a FTDI cable, but it has only 4 wires, Vcc,GND,TX,RX
How do you upload, as the ATmega is ...
1
vote
1answer
66 views
Multiple MPU9250 using Multiplexer
Anybody here have tried connecting multiple MPU9250 into multiplexer. Anyway, I've used the HD74LS151 as the substitute for the 74HC4051 multiplexer. I already tried running the program and just ...
1
vote
1answer
21 views
Problem with sending DMX
I want to send DMX with my Arduino Mega 2560. I'm using the IDE 1.6.7
I tried the AVR -> DMX source code from Ulrich Radig and also the layout for the RS-485 transmission.
I modified the code to fit ...
3
votes
2answers
40 views
Error when using USART with Arduino Mega 2560
I use the Arduino IDE 1.6.9
What I want is a DMX Receiver which receives 1 channel and displays it on the serial monitor. When I try to compile the code, I get the following error:
...
0
votes
1answer
14 views
Arduino Mega connect to 2.1 speakers
I am new to Arduino and I want to connect it to my 2.1 speakers and later to a 5.1 surround system.
The purpose is to play some wav sounds when a button is clicked or when a trip laser is cut. What ...
2
votes
1answer
41 views
What is the Proper Voltage to supply an enough Current to the Arduino
I'm just confused about the supply that I should use in driving my arduino. Is it okay to use a 3.7V with a 1000mAh to supply it?
I will be using a Lilypad Arduino.
Your replies would be a big help ...
0
votes
2answers
57 views
How to avoid delays in the loop() function?
vI have this functions in my loop() and it publishes temperature reading to Ubidots(an IoT cloud service) using the #include library but it seems it returns a boolean and so the loop is delayed until ...
3
votes
3answers
170 views
How to use Multiple MPU9250 to Arduino Lilypad
Is it possible to connect more than one or to be specific 5 MPU9250 into 1 Arduino lilypad? How will I set the addresses, and where should I put the pins for SDA and SCL? I hope someone out there ...
1
vote
1answer
58 views
Using Bluetooth module HC-05 when Arduino is powered using a battery
I have a project that involves sending messages from an Android device to an Arduino using a bluetooth module. I am using an HC-05 bluetooth module and an Arduino Mega 2560.
It works as long as I ...
1
vote
1answer
22 views
Atlas Scientific pH project - serialEvent3 problems
I am trying to get this pH project working and I've noticed that the serialEvent3 never sets the boolean value sensor_string_complete to true. I am not sure if it is actually capturing the values ...
1
vote
2answers
58 views
Logic level converter 12v to 5v
What is the cheapest and best method to convert 12v(14)<->5V(3.3)? Need to connect Arduino to a car.
I need logical shifter not buck converter to connect Arduino to car 12v circuit. I would like ...
5
votes
1answer
114 views
ArduinoMEGA: 64 digital inputs cause random digitalRead values
I have 64 hall effect sensors (magnetic field sensors) (DRV5023AJQLPG) connected to an Arduino MEGA 2560. For that, I use 48 digital pins and 16 analog pins as digital input pins. The program in the ...
1
vote
3answers
89 views
How to read bitmap image on Arduino
I want to convert a bitmap into binary array. My bitmap image is 272*208 pixel monochromatic 1bpp image. I'm confused when the width I get from my image is 16 instead of 272, the height is corrected. ...
0
votes
0answers
27 views
Serial Monitor Just Stops Working
I am communicating with two Arduinos with serial. The program works great for a while but then the serial monitor stops showing values in the RX code and will not work again unless the code is ...