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 19667

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
1 answer
737 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 n …
dinotom's user avatar
  • 360
1 vote
1 answer
54 views

Compiler doesn't like function code

I am getting this error from the Visual Studio compiler (I use the Visual Studio add-in Visual Micro for Arduino). ModelRailroadCrossingSignalController.ino:In function 'void loop() ModelRailroa …
dinotom's user avatar
  • 360
3 votes
1 answer
15k 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 refer …
dinotom's user avatar
  • 360
2 votes
Accepted

using enums in functions

The solution was to move the enum declarations to a header file, due to the fact this was a VM add-in issue which will be resolved once they've implemented arduino version 1.6.8. Adding this code to …
dinotom's user avatar
  • 360
1 vote
4 answers
3k 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 err …
dinotom's user avatar
  • 360
0 votes
1 answer
523 views

Using a 5 pin button with Arduino Correctly

I am trying to build a simple motor test sketch, currently, to test a NEMA 23 stepper motor and the DM542T stepper driver. Here is the code, and I am having trouble figuring out how to properly wire t …
dinotom's user avatar
  • 360
4 votes
2 answers
23k 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 stat …
dinotom's user avatar
  • 360
2 votes
2 answers
406 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 …
dinotom's user avatar
  • 360