Closed BartmanEH closed 8 years ago
The existence of said file does not mean that I "support" something; I did something sometime ago, possibly it works for others too... The file corresponds to the hardware in the photo
which should answer the pin stuff.
I put down a lot of effort into (the Nano instruction)[http://www.harctoolbox.org/arduino_nano.html], using other HW is in this light a much harder task.
I understand now and I can now make the correlation of Arduino Nano pins and translate them to Arduino Pro Micro pins. Now I know about the preprocessor symbols too - thanks for that. The Arduino IDE really hides too many things.
I reviewed the entire Nano hardware guide and notwithstanding my challenges to switch to the Pro Micro, information is missing about how to change the I/O pin assignments for different non-demodulating IR sensors. The QSE159 I have has a different pin out and the pin definitions need to be changed to accommodate the VCC/signal/GND pinout. So after reading through many of your source files, I see the following section in _girs_pinsmicro.h:
#ifdef RECEIVE
#define IRRECEIVER_PIN 10
#define IRRECEIVER_GND 16
#define IRRECEIVER_VSS 14
#endif
and I see GirsUtils.h where the digital levels are set for those I/O pins. What's confusing is that Vss is usually used for negative supply or ground, however, I think you intend for IRRECEIVER_VSS to be the positive supply for the IR sensor, correct?
You are right, there is no beginners guide to using Micro/QSE159 etc. I have no immediate plans to write one either, but if someone sends me a useful text, I will consider using or incorporating it. I have written one beginners guide already....
Suggest you search & replace _VSS for _VCC in your pin definition source code files. I will proceed assuming this is correct.
I think there's a small bug in _girs_pinsmicro.h. The following:
#if defined(CAPTURE)
// capture pin (ICP) 4
//#define IRSENSOR_1_PULLUP
#define SENSOR_GND 5
#define SENSOR_VSS 6
#endif
should be:
#if defined(CAPTURE)
// capture pin (ICP) 4
//#define IRSENSOR_1_PULLUP
#define IRSENSOR_1_GND 5
#define IRSENSOR_1_VSS 6
#endif
The parameters _SENSORGND and _SENSORVSS are not referenced in GirsUtils.h - they are referenced as _IRSENSOR_1GND and _IRSENSOR_1VSS.
Thanx!
Everything appears to have been cleared out, closing.
Thank you for producing a _girs_pinsmicro.h file to support the Pro Micro. I take it from the following section:
that I would wire up the LEDs as follows:
#define SIGNAL_LED_1 2
end up doing for Pro Micro?#define ARDUINO_AVR_MICRO
to GirsLite.ino, correct?I can understand that you might not want to get too involved in the particulars of the Pro Micro since you use and support the Nano yourself, however, at least inform about the best approach for directing the compiler to use a specific Arduino version - there are no comments in the source files that I can see on where to put the
#define ARDUINO_AVR_XXX
directive.