hey Nes,
to avoid any confusion on compatibility or which version you are using, can you post a link to where YOU got your eclipse? I see different options and want to mirror your setup.
hey Nes,
to avoid any confusion on compatibility or which version you are using, can you post a link to where YOU got your eclipse? I see different options and want to mirror your setup.
As a fast answer : I can't find the one I use anymore (that sucks I only figured out now) ... it was V2.4_win64.2015-12-06_20-24-02.
It wasn't a nightly build.
I don't know why it has been retired.
Anyway, I already planed to add a full paragraph in the future readme revision, on Arduino Eclipse install and config.
Not that is complex, but I least you'll find everything in one place ![]()
[EDIT]
First README.md update including Arduino Eclipse setup.
neskweek:
Low/critical Battery detection system
When battery goes low, a sound (and light if you're in actionMode) effect will be played to warn you
When battery goes critical, the saber will shut and go in deep sleep mode, if enabled or will stays dull until you change battery. Believe me : the sound alert produced for this event IS annoying. You will change your battery !
Hi neskweek, very good job, impresive development speed ![]()
Regarding battery level detection... have you tested if it works properly?
I have tested this type of measurements and it seems that takes VCC after Arduino voltage regulator, so you would only get a 5volts read with small variation (in my tests arround 4.9v with USB power and 5.1v with batteries).
The only method I have found to correctly measure the voltage is the other one already mentioned in this forum:
http://forum.arduino.cc/index.php?topic=361566.msg2612651#msg2612651
@Thelmos
Thank you ![]()
The function that reads Vcc from Arduino comes from here. This pages explian really well how it works
I just realized you used this part of code in the solution you posted some time ago. I also have to apologize: I didn't read it right since I thought it was a Voltage Regulation solution you did post ![]()
I just realized it, now that I wanted to ask you how it works (since I didn't understood in the first place :P)
Anyway I did test it, that way :
I own 2 old 18650 :
I did set voltage treshold detection for low and critical to 3.2V and 3.020V respectivly.
I powered the device with only battery (1). It runs for almost 5 min until it start firing Low battery alert. (LSOS ask for battery voltage status every minute)
Then I powered the device with only battery (2). It started but immediatly thrown critical battery alert.
When plug on USB, readVCC always shows around 5V, since it's USB power it uses and doesn't fire any alert (unless there is USB wire failure: in this case it fires critical battery alert).
Concerning Deep Sleep Mode, it seems to work OK, but I was totally unable to measure consumption: my AmpMeter isn't sensible enough. From what I've read on the net :
Then you might be right if one use battery that provides more than 5V it may not catch up Voltage readings. But that exceed my knowledge.
Hey Nes,
I am going through your instructions but I am using adafruit's trinket pro and I don't know how to add that to eclipse, got any pointers?
I hope you didn't remove Arduino IDE from your computer. If you did You'll have to reinstall it with the adafruit hardware package.
Then
In Eclipse Arduino
Windows>Preference>Arduino
Private hardware path > New
C:\Users[YOUR USER]\AppData\Roaming\Arduino15\packages\adafruit\hardware
OK
Then right click on project name in Project explorer > Properties> Arduino
Change Board.txt file
The board list should now present you the trinket ![]()
Wow, I'm impressed by the sheer amount of activity on both lightsaber threads. Neskweek, good job, I will test the LSOS v1.0 as soon as these arrive ![]()
I'm already sooooo excited, they will arrive tomorrow. Front side:
Back side:
Keep the fingers crossed that they work first-time-right!!!
neskweek:
I powered the device with only battery (1). It runs for almost 5 min until it start firing Low battery alert. (LSOS ask for battery voltage status every minute)
Then I powered the device with only battery (2). It started but immediatly thrown critical battery alert.
The whole system runs with only one 18650? !!!
Arduino nano input voltage limits are 6-20 V, I thought that even a fully charged 18650 (4.2v) would not be able to handle it.
@Thelmos
yep my "whole" breadboard system runs with a single 18650... but I only have 8 leds plugged in. And they light dim. That was just for testing purpose.
SWEEEEEEEEEEEET !!!!!
Protonerd:
Keep the fingers crossed that they work first-time-right!!!
The build quality seems really good, congrats!
I'm currently finishing my build, I will share some thougts in a week or so, specially regarding led strings build, MPU6050 and base code for my saber engine.
Thelmos:
The whole system runs with only one 18650? !!!Arduino nano input voltage limits are 6-20 V, I thought that even a fully charged 18650 (4.2v) would not be able to handle it.
6-20V is the recommended range for the external system voltage connected to VIN pin. Reason is, that the 5V LDO between the system/battery voltage and the supply of the internal logic only works if its input voltage is greater than its output. But if you bypass the LDO - correct me neskweek if you did it differently - and connect the 18650 directly to the 5V pin, the system works. For the Atmega this voltage is enough. The MPU6050 is anyway a 3.3V device. Same applies to the YX5200, the only thing I need to check is the audio amp.
Once I have a working DIYino I will certainly check what is the lowest voltage the system still works with. A single 18650 will be able to supply all kind of saber setups (with the notable exception of neopixels, there you need at least 2 or a different type as suggested by neskweek) and with LSOS's new sleep mode feature shelf life should be extended quite a bit!
is the DIYino run off 3.7v or 7.4v?
Neskweek, I'm trying to setup LSOS v1.0 using Eclipse Arduino, but when I go to import the libraries, they don't appear in the list.
Protonerd:
Wow, I'm impressed by the sheer amount of activity on both lightsaber threads. Neskweek, good job, I will test the LSOS v1.0 as soon as these arriveI'm already sooooo excited, they will arrive tomorrow. Front side:
Pretty exciting indeed!
Hello, I'm from Russia and very badly speak in English, and will use an online translator, I'm me, I'm sorry, if that is not clearly expressed, but the idea is to bring all the same try. I need help, I decided to put a lightsaber with sound-based Arduino Nano 3, but do not know where to start, there are already very Arduino Nano 3, a sound module WTV020 instead want to use the accelerometer sensor SW-18010- P and 200 Sw d, and not only a powerful LED, I want to use a homemade garland of 5mm LEDs. I need advice on choosing the sound module, so my I do not like where to get themselves to the sound of a lightsaber, and circuit sketch. near I is unlikely to happen, because I really do not mess with this technique.Once again I am sorry for my english.led string lightsaber tutorial parte 1 - YouTube, if that person is present at this forum, I beg you, I throw off the sounds that you use in your project with the name
I tried changing to the Trinket and here are the errors I get
failed to find core reference: arduino:arduino
failed to find variant reference: arduino:eightanaloginputs
eclipse.buildId=unknown
java.version=1.8.0_74
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -perspective it.baeyens.arduino.application.perspective
Command-line arguments: -os win32 -ws win32 -arch x86_64 -perspective it.baeyens.arduino.application.perspective
it.baeyens.arduino.core
Warning
Sun Mar 13 21:05:52 PDT 2016
parsing of upload recipe failed
java.lang.NullPointerException
at it.baeyens.arduino.tools.Helpers.setTheEnvironmentVariablesPostProcessing(Helpers.java:1100)
at it.baeyens.arduino.tools.Helpers.setTheEnvironmentVariables(Helpers.java:922)
at it.baeyens.arduino.listeners.ConfigurationChangeListener.handleEvent(ConfigurationChangeListener.java:47)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.notifyListeners(CProjectDescriptionManager.java:2212)
at org.eclipse.cdt.internal.core.settings.model.AbstractCProjectDescriptionStorage.fireAboutToApplyEvent(AbstractCProjectDescriptionStorage.java:284)
at org.eclipse.cdt.internal.core.settings.model.SetCProjectDescriptionOperation.executeOperation(SetCProjectDescriptionOperation.java:66)
at org.eclipse.cdt.internal.core.model.CModelOperation.execute(CModelOperation.java:341)
at org.eclipse.cdt.internal.core.model.CModelOperation.run(CModelOperation.java:607)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
at org.eclipse.cdt.internal.core.model.CModelOperation.runOperation(CModelOperation.java:638)
at org.eclipse.cdt.internal.core.settings.model.AbstractCProjectDescriptionStorage.setProjectDescription(AbstractCProjectDescriptionStorage.java:203)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionStorageManager.setProjectDescription(CProjectDescriptionStorageManager.java:149)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.setProjectDescription(CProjectDescriptionManager.java:885)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.setProjectDescription(CProjectDescriptionManager.java:846)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager$6.run(CProjectDescriptionManager.java:573)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager$5.run(CProjectDescriptionManager.java:523)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.runAtomic(CProjectDescriptionManager.java:519)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager.access$2(CProjectDescriptionManager.java:517)
at org.eclipse.cdt.internal.core.settings.model.CProjectDescriptionManager$4.run(CProjectDescriptionManager.java:498)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Yeah I noticed that java 8 is not 32 bit, I run Windows XP. So I have to search archives for possibly working version. So anyone who trys compile with XP need report of good JAVA version, as I'm sure everyone else has WIN 7 10 etc. All differences in Operating Systems probably gave you above errors.
Or mixed up file naming assignments etc etc..... saaaa naaaa....
so should I uninstall Java and reinstall what Nes suggested?
I don't know why you have this problem or how to fix it
.From what I understand something might have go wrong during the first start. Maybe try to remove eclipse and start install again.
But I can't guaranty it will work.
@DJWing79
From what I understand it might be the reason why Eclipse Arduino is still not officially released.
You might want to try newer nightly builds or you may try to hack C:\Program Files\eclipseArduino\arduinoPlugin\packages\arduino\hardware\avr\1.6.10 files to add your device , or wait the 1st April for Arduino Eclipse v3 release (yeah no joke here
)
nesk is normal when comment line #define LEDSTRINGS have 39 errors in compilation with arduino eclipse?