Show Posts
Pages: [1] 2 3 ... 15
1  Development / Other Software Development / Re: CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827) on: April 22, 2014, 08:00:02 pm
This is a longshot, as it's a rather open ended question but I've taken a stab at building a simple sketch using the C::B IDE.  It's so much nicer user-wise than the standard Arduino IDE.

My dilemma is that I cannot build anything that utilizes a library.  Or, at least, one that uses the nRF2401 library from Maniac Bug.

My simple sketch, which I could build, upload and run to blink the LED on an Uno (plus some lines I added afterwards):

#include <arduino.h>
#include <RF24.h>
#include <nRF24L01.h>
#include <RF24_config.h>

  Turns on an LED on for one second, then off for one second, repeatedly.
const int t = 2;

RF24 radio(9,10);

void setup()

// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);

//    radio.begin();

void loop()
Serial.println("Hello world!");

delay(1000);              // wait for a second
digitalWrite(13, HIGH);   // set the LED on
delay(1000);              // wait for a second
digitalWrite(13, LOW);    // set the LED off

I chose the "GNU AVR GCC Compiler"
You will notice I added the nRF2401 stuff.  Now it complains:
undefined reference to `RF24::RF24(unsigned char, unsigned char)'

Which I infer is because it cannot resolve uint8_t as an integer.  I assume it fails gracefully and assumes a char data type.

Can someone please look at the attached verbose output of the compilation and perhaps glean a clue what is possibly being overlooked?  Surely I just have the library search paths wrong bit sheesh there are dozens of places to set them and I can't isolate where it's wrong.  If, that is it is the problem at all.

I would also add that if I change the compiler to be "GNU GCC Compiler" The undefined reference goes away, presumably the definition of uint8_t is getting resolved.  But of course, that's not suitable for uploading into an Arduino (doesn't even create the .hex file)

Lastly, the RF24 libraries are there and I have build sketches many times through the Arduino IDE without trouble.  I just hate the damn primitive user interface and much rather would use C::B if I could sort this out.
2  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet, nRF24L01, SD problem on: April 13, 2014, 05:38:58 pm
Most of us discover that the 3.3v power supply is the culprit and putting a 10mF or so electrolytic across the supply, close to the rf24 module makes it all work as it should.

So if you have not tried that, please do.
3  Topics / Home Automation and Networked Objects / Re: Ever use a Fairchild MID400 AC line sensing opto? on: April 06, 2014, 01:09:05 pm
I originally calculated 2.2k ohms, opting to stay well above the minimum current for an 'ON' condition.  I had no idea how finicky they might be.  Ultimately, I tacked a 10K SMD resistor I had laying around onto a test board and it worked fine, so I went with that value.
4  Using Arduino / Programming Questions / Re: PHP Serial Communication NOT working on: March 31, 2014, 05:09:11 pm
I didn't even post my code?
Exactly my point

Still cannot figure out why smart aleck replies are thought to be in any way helpful by a subset of this forum's readership.  Particularly when they go two levels deep.
5  Using Arduino / Networking, Protocols, and Devices / Re: Seeeduino GPRS + Prepaid phone service on: March 28, 2014, 07:02:16 pm
The T-Mobile offerings includes a 'gold' level whereby you pay $100 in one lump and it's good for a year.  $20 less than $10/mo, so minimally cheaper, but at least you don't have to recharge the account every month.
6  Using Arduino / Networking, Protocols, and Devices / Re: nRF24L01+ -> problem to get working on: March 01, 2014, 02:51:52 pm
If the problem you are referring to is the garbage on the console, that's due to the baud rate being 9600 while your code is selecting 115200.
7  Using Arduino / Networking, Protocols, and Devices / Re: Receive and answer SIM900 GSM on: February 28, 2014, 07:21:15 am
Try this site:

You can use their java application to operate your GSM module, test, experiment, and learn what capabilities it has.
8  Using Arduino / Sensors / Re: RPM Sensors on: February 26, 2014, 05:02:18 pm
I infer that 60-2 means there are 58 teeth.  So why would you not just count 58 pulses per revolution?  If having all 60 equally spaced is critical, just monitor millis() in your loop() to discover the timing gaps and fake those two that are missing.
9  Using Arduino / General Electronics / Re: Dressing it down to "Step it Down!" on: February 13, 2014, 02:22:51 pm
Something like this:
10  Using Arduino / Networking, Protocols, and Devices / Re: Lib RF24 returning 4294967295 for everything from nRF24L01 on: February 11, 2014, 06:45:27 pm
That wiring diagram suggests you have vcc and gnd reversed.  That is, compared to all the nrf24's I have ever used, anyway.  They all have gnd in the corner position (and usually with a white square drawn around it)
11  Using Arduino / Project Guidance / Re: Cloning rc 2.4ghz radio signals on: December 15, 2013, 12:59:43 pm
Other than being in the same ISM radio frequency allocation spectrum, there is likely nothing else in common between the nRF2401 and the R/C radios.

The nRF2401 has its own messaging format for sending/receiving data and I do not expect it to be feasible to communicate with the R/C units.

Lots of things are '2.4GHz radio signals' - wireless phones, blue-tooth devices, WI-fi routers and so on.
12  Using Arduino / Networking, Protocols, and Devices / Re: nRF24L01+ with 1.77" TFT module on: December 14, 2013, 11:22:25 am
I've followed the advice of others here and now make sure i install a 10uF capacitor across the 3.3V close to the radio module.  That's improved reliability for me.

However, I am surprised that you seem to be reading 'all zeros'.  For me a non functioning module was usually giving 'all ones' in the printDetails().  Maybe the Due just doesn't give you adequate 3.3V supply with the other device connected.

13  Topics / Home Automation and Networked Objects / Re: Looking for ultra simple method of scheduling heating on: December 14, 2013, 08:51:57 am
Looks like you're in capable hands and well on your way.  But in case you are interested, there's a library  that I would call simple from the aspect of managing/specifying your schedule.  However it means adding a library and consuming memory on your Arduino, so that may violate your meaning of simple.

This implements a Unix-style cron scheduler.
14  Using Arduino / Programming Questions / Re: A link to info on 'function pointers' on: December 14, 2013, 08:02:11 am
Correct, I used the wrong term.
15  Using Arduino / Programming Questions / Re: A link to info on 'function pointers' on: December 13, 2013, 07:58:06 pm
Clever fellow!  I must digest more fully, but much like I often do with passing anonymous functions in javascript.
Pages: [1] 2 3 ... 15