New to this and frustrated with the arduino IDE
-
Hoping to get some help please. I am not a programmer but I am trying to learn. I am excited to get started with my sensors but can not get to the point of even loading the code.
I first had problems with the Arduino IDE not finding the .h files. I spent the morning moving all the .h files into the main folder. Now I am getting more errors compiling the mqtt sketch. My question is, is another compiler program that would make my life easier?
-
It's really hard to help without more details. What Os are you running which versio of the IDE etc. Which .h files did you move?
As far as the Arduino IDE. I never had any problem with it. I just used default install on my Mac and it works perfect, at least for me
-
@TheoL I apologize for the lack of details. I will get more info when I get home but I can tell the first issue was it did not like where the .h files where located. I did some research and moved them all to the home folder. After doing that it did not like the format of some of the .h files located deeper in the code.
For example some of the files where
Include"this foler/thefile.h"
So I went in and edited with note pad ++
"Thefile.h"
Now I have a list of errors a mile long. It seems that the whole file structure is not working with the arduino software.
Did I download the wrong thing from Github? I have tried on 2 different computers, clean install of the arduino software and a few different versions of the arduino master file.
I am sure this is something on my end. Thank you so much for your valuable time.
-
@ewaldsreef I'm not sure what you changed in the .h files. But if it were statements like #define etc. Than you either should change them back or reinstall everything. Because the libraries will no longer work.
I'd suggest the following steps. Just to be sure where it goes wrong.
- Uninstall the ide
- Install the ide again and tyr if you can upload the blink sketch to an arduino. This shouldn't cause any problems.
- then follow the guidelines for installing the mysensors library into the arduino ide.
- Hook up an antenna and an LED (with 220 Ohm resistor)
- Upload the simple light example to the arduino
- Watch the errors.
-
Thank you. I did what you said and now it appears to be working. I am not sure where I went wrong the first time.
-
@ewaldsreef Glad I could help.
-
Where do you have to install MY Sensor library? I have downloaded Arduino-Master and copied all the files into Arduino Library but its not working.
-
@jeylites instructions are available at http://www.mysensors.org/about/arduino#installing-the-sensor-libraries
-
@jeylites perhaps I can help by telling you what I belive I did wrong. After I unzipped the Arduino master file I put the whole thing into the library file. I think this caused some confusion. When I went back and did a clean install as was suggested I only moved over the my sensors file folder into the arduino library folder. Worked perfectly after that.
-
Thanks guys, I'm going to give a third try.
-
After checking, I notice there are two library folder. There is one in My Documents and another in Program Files - Arduino - library. Which MY Sensor files need to go into which folder?
-
@jeylites from the instructions:
*To find the the location where you should put the bundled libraries, start up the Arduino IDE and open Preferences under the "File" menu on Windows or "Arduino" menu on Mac OS X.Note the "Sketchbook location" on your computer drive.
Now extract the content of the library zip archive to the sketchbook location on your hard drive.. You can drop everything you find in the zip (including libraries folder) to your sketchbook location.*
-
Out of curiosity, what version Arduino are you running? I ran version 1.0.6 without any problems. I only have an issue on 1.6.7. It looks like 1.6.7 manages library differently.
-
I think I have 1.6.5.
These threads might be helpful:
http://forum.mysensors.org/topic/2321/compiling-problems/
http://forum.mysensors.org/topic/2434/dallas-temperature-sensor-compiling-error/
http://forum.mysensors.org/topic/2576/installing-mysensors-and-arduino-ide-on-osx/
-
@jeylites I just put mine into My Documents/Arduino/Libraries