Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 42015

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

expected unqualified id before token

You need the void loop() function on your sketch. This function gets called directly after the setup. If it's not there, then the program cannot compile. You cannot put any execution code (means code …
chrisl's user avatar
  • 16.6k
2 votes

I want to code a depth sensor for arduino

Your code has several problems: You are including the MS5837 library twice. That just doesn't pose a problem, because the library has include guards, that make sure it is only included once. At glob …
chrisl's user avatar
  • 16.6k
1 vote
Accepted

How can I make the Serial Monitor work with the Serial Commands library?

You defined, that every command will end with \r\n. So you need to choose "Both NL & CR" as line ending in the Serial monitor, so that it appends the line ending to your command. If you don't send the …
chrisl's user avatar
  • 16.6k
3 votes
Accepted

strange strings

First of all you have to make sure, that you select the same baudrate in the Serial Monitor, that you used in your sketch with Serial.begin(). This error is very common and garbage values is the sympt …
chrisl's user avatar
  • 16.6k
1 vote

2 Fingerprint scanner using 1 arduino

The library, that you are using, doesn't seem to support exporting or importing fingerprints. Though if you look into the user manual of the fingerprint sensor at the Adafruit site, there are two comm …
chrisl's user avatar
  • 16.6k
1 vote
Accepted

How to prevent an Arduino connected to the Internet from being hacked?

This depends on what you consider "hacked". Do you care about someone reading the data, or changing it on its way to the target? Or do you provide endpoints to trigger something in your project from t …
chrisl's user avatar
  • 16.6k
1 vote
Accepted

How to switch between multiple BMP180 sensors?

The BMP180 uses the I2C bus and you cannot simply turn off the device, since that can block the I2C bus. Also it has only one, not changeable address. Thus you would need one I2C bus for every BMP180. …
chrisl's user avatar
  • 16.6k
1 vote

SparkFun BasicAHRS_I2C giving unstable readings

The values seem fine to me. Generally these MPU chips are really noisy, that is totally normal. Ti really use the data to the the current orientation, you have to use a filter to combine the data from …
chrisl's user avatar
  • 16.6k
1 vote

Using Arrays and LED's to represent Piano Scales

Your current code will not show all notes of a scale. Only the notes at 1 and 2 will light up, since you don't sum up the numbers, that you have stored in MajorScale. But I think it is not a great ide …
chrisl's user avatar
  • 16.6k
0 votes

Troubles with motors for arduino

I cannot say much about the example code, that you mentioned. The posted example code is not complete, also the second part with the for loop is plain wrong. A for loop looks like this for(<Variable …
chrisl's user avatar
  • 16.6k
0 votes

Sending variable length sequence via serial from PC to Mega

The main issue here is, that you are reading data, that might not be received yet. This: if (Serial.available()) { will check if there is any data in the Serial buffer. As the code runs rather fast a …
chrisl's user avatar
  • 16.6k
3 votes
Accepted

How to split 12V power suply to arduino and led matrix panel

No,you cannot split the voltage and expect the devices (Arduino and LED strip) to work correctly together (would lead to different ground levels beside other problems). For getting a different voltage …
chrisl's user avatar
  • 16.6k
0 votes
Accepted

problem related to arduino

In the function Update_Ultra_Sonic() you do the measurement and save the result in the variable duration. Then you print the variable cm, but you haven't calculated the value for this variable yet. Yo …
chrisl's user avatar
  • 16.6k
1 vote
Accepted

Arduino ADC converter calculation

Your calculation is not correct. The encoder has its 0 to 10V output voltage distributed over the whole distance, that the cable can reach, so 1.25m. And that gives you the resolution: 1.25m/1024 = 1. …
chrisl's user avatar
  • 16.6k
0 votes

stepper motor doesn't work but get no error message

Here you can find the manual of your stepper driver. Look at page in the section "CN3 (I/O signals)". Beside the pulse and directions, that you already set in your code, there are 2 more input signal …
chrisl's user avatar
  • 16.6k

15 30 50 per page