LED Ring I2C device
Re: LED Ring I2C device
@ Alex...
is done and tested... zip file here...
http://www.flypix.co.uk/shikra/ftp/
Minor Revised led.ino
to suit 2.1+ flags
added vbat into #define
New LEDring.ino
can compile in Arduino 1.0 to make easier going forward
instructions for making 1.0 suitable to use with the board
new feature - sat count indicator when motors off and gpshold/rth switch enabled. (I found surprisingly usefull...)
a few more led sequences
some tidy up
I'll do a vid at some point
is done and tested... zip file here...
http://www.flypix.co.uk/shikra/ftp/
Minor Revised led.ino
to suit 2.1+ flags
added vbat into #define
New LEDring.ino
can compile in Arduino 1.0 to make easier going forward
instructions for making 1.0 suitable to use with the board
new feature - sat count indicator when motors off and gpshold/rth switch enabled. (I found surprisingly usefull...)
a few more led sequences
some tidy up
I'll do a vid at some point
-
- Posts: 1630
- Joined: Wed Jan 19, 2011 9:07 pm
Re: LED Ring I2C device
ok thanks,
I will integrate it soon
the vid will be welcomed
I will integrate it soon
the vid will be welcomed
Re: LED Ring I2C device
hi
will this one compatible to your code shikra?
http://www.dfrobot.com/index.php?route=product/product&product_id=487#.UBKo_2E0MUM
br michael
will this one compatible to your code shikra?
http://www.dfrobot.com/index.php?route=product/product&product_id=487#.UBKo_2E0MUM
br michael
Re: LED Ring I2C device
Fairly sure its the same one. If not I'll happily amend the code.
I got my board from multiwiicopter.com, but I see its not listed at moment which usually means out of stock.
I got my board from multiwiicopter.com, but I see its not listed at moment which usually means out of stock.
Re: LED Ring I2C device
wow !! dfrobot ist fast!! very fast!! i ordert the led-ring device on sunday evening and it is now in frankfurt,germany in 2!!! days from shanghai
-
- Posts: 1630
- Joined: Wed Jan 19, 2011 9:07 pm
Re: LED Ring I2C device
It's now in the _shared branch + the standalone file + your README.txt
Re: LED Ring I2C device
That's great. Thanks Alex
Sorry no vid - I recorded, but the camera doesn't show the led.ss. Need to try a different one.
Sorry no vid - I recorded, but the camera doesn't show the led.ss. Need to try a different one.
Re: LED Ring I2C device
I tried this device (DIY). Works perfect.
Re: LED Ring I2C device
hi
my device arrived today with the second attempt
the mounting holes are not standart (aprox. 1inch)
are there any pictures how to mount the led ring on a copter?
my device arrived today with the second attempt
the mounting holes are not standart (aprox. 1inch)
are there any pictures how to mount the led ring on a copter?
Re: LED Ring I2C device
I got my device too.
But it's not usable. Why didn't think devolper about how to mount it to frames
But it's not usable. Why didn't think devolper about how to mount it to frames
Re: LED Ring I2C device
It is designed not a for MWC...
Re: LED Ring I2C device
This is an MWC (MultiWii Copter?) forum?!?!?
So when some one post hardware here I expect that I can use it.
So when some one post hardware here I expect that I can use it.
Re: LED Ring I2C device
Yes, you can use it. But the mounting holes are not MWC standard...
I make DIY LED RING.
I make DIY LED RING.
Re: LED Ring I2C device
cGiesen, this is a MWC software forum, the software that makes it work is available, but being able to attach it to whatever frame you buy (since MWC is not hardware, nor frames) will be left up to you.
the product was originally designed for another purpose, and Alex was cool enough to re-purpose it. if you come up with a clever way of mounting it, please share.
the product was originally designed for another purpose, and Alex was cool enough to re-purpose it. if you come up with a clever way of mounting it, please share.
Re: LED Ring I2C device
Hi guys - for mine I cut a liteply circle same as PARIS board, drilled standard mount holes to fit to frame and sprayedblack to look cool. Then foam taped the LEDring to the board.
ALso I soldered the i2c connector to underside of board to no wires on top. I just removed and sprayed the LEDring board black to see if I can make a video showing the LED colors better as my cam doesn't show how good it looks.
ALso I soldered the i2c connector to underside of board to no wires on top. I just removed and sprayed the LEDring board black to see if I can make a video showing the LED colors better as my cam doesn't show how good it looks.
Re: LED Ring I2C device
ReM - wow - thats a lot of effort. Well done. If you want any different LED configs to suit let me know - is LED0 one of center ones? That would be best for the layouts / mag
Re: LED Ring I2C device
tovrin wrote:cGiesen, this is a MWC software forum, the software that makes it work is available, but being able to attach it to whatever frame you buy (since MWC is not hardware, nor frames) will be left up to you.
the product was originally designed for another purpose, and Alex was cool enough to re-purpose it. if you come up with a clever way of mounting it, please share.
Hi,
all FC and BOB have the same mounting.
Why? Say want to sell. If the mounting is different to all other, say must have boards for all different frames.
And a 'standard' is 45mm
But you are right is up to you, to ignore that.
I have buy my item. If you are a europe company I would resent it and get my money back!
So I put it only to my archive.
cu
Carsten
Re: LED Ring I2C device
shikra wrote:ReM - wow - thats a lot of effort. Well done. If you want any different LED configs to suit let me know - is LED0 one of center ones? That would be best for the layouts / mag
Yes, the blue led indicates the correct direction. I changed the RTH and POSHOLD LED sequences - blue leds not good visible in flight...
Re: LED Ring I2C device
Got a question for anyone that might know! I have one of these LED rings (think it's a V3 - don't know how to tell)! Anyways, I was able to reflash it just fine and installed the 2.1 MultiWii code with the updated LED.ino on my Paris v.4. In the MultiWii code the LED Ring is defined. Now, I thought all the pieces and code, etc were correct but I don't get anything lights
I know the wiring is correct - is there anything else I should look out for?
Thanks!
Jason
I know the wiring is correct - is there anything else I should look out for?
Thanks!
Jason
Re: LED Ring I2C device
Any lights at all? On the latest one the default should be a circling red led on white - waiting I2C comms
how about uncomment this one...
//#define LED_RING
I put some instructions in zip file... Drop me a mail if still stuck
how about uncomment this one...
//#define LED_RING
I put some instructions in zip file... Drop me a mail if still stuck
- Attachments
-
- README.zip
- (2.31 KiB) Downloaded 217 times
Re: LED Ring I2C device
hi
i just getting errors trying to upload the led-code to the device.
after modifying the boards.txt file it works....
i added the lilypado.bootloader..... terms!
i just getting errors trying to upload the led-code to the device.
after modifying the boards.txt file it works....
Code: Select all
##############################################################
lilypado.name=MultiWiiCopter LED Ring v3
lilypado.upload.protocol=arduino
lilypado.upload.maximum_size=14336
lilypado.upload.speed=115200
lilypado.bootloader.path=optiboot
lilypado.bootloader.file=optiboot_atmega168.hex
lilypado.build.mcu=atmega168
lilypado.build.f_cpu=8000000L
lilypado.build.core=arduino
lilypado.build.variant=standard
##############################################################
i added the lilypado.bootloader..... terms!
Re: LED Ring I2C device
hi
i now attached the device to my copter on the bottom side.
in flight i can see the leds much better
it is possible to change the direction off the mag indicator?
dont know atm what else should be changed if the device is mounted upside down.
thanx
michael
i now attached the device to my copter on the bottom side.
in flight i can see the leds much better
it is possible to change the direction off the mag indicator?
dont know atm what else should be changed if the device is mounted upside down.
thanx
michael
Re: LED Ring I2C device
mbrak wrote:hi
i now attached the device to my copter on the bottom side.
Can I have a picture please?
Re: LED Ring I2C device
hi
here they are
here they are
Re: LED Ring I2C device
Try changing
param[5]=90-param[5];
to
param[5]=90+param[5];
in LEDRIng.ino
I think should work from quick look.
Nice on the underside. I have not tried but wondered if it possible to run 2 * I2C in read only on same bus. Have to google...
For me I just like it for bling!! Although the sats indicator is brill. I really like that.
I'll add a config option in future release to reverse direction if needed.
param[5]=90-param[5];
to
param[5]=90+param[5];
in LEDRIng.ino
I think should work from quick look.
Nice on the underside. I have not tried but wondered if it possible to run 2 * I2C in read only on same bus. Have to google...
For me I just like it for bling!! Although the sats indicator is brill. I really like that.
I'll add a config option in future release to reverse direction if needed.
Re: LED Ring I2C device
Here's mine mounted on my MWC X250
Re: LED Ring I2C device
look cool
i think mounting it upside down on the bottom was the right way!
in flight you could see the different modes very well!
on top is the gps antenna. no space for a led ring device
thanks shikra for the code. will test it tomorrow! great code !!!
what did you mean with 2 devices in read mode? the led-ring and the oled? working very well together! no problems!
br michael
i think mounting it upside down on the bottom was the right way!
in flight you could see the different modes very well!
on top is the gps antenna. no space for a led ring device
thanks shikra for the code. will test it tomorrow! great code !!!
what did you mean with 2 devices in read mode? the led-ring and the oled? working very well together! no problems!
br michael
Re: LED Ring I2C device
Sorry - was not clear.
What I mean was 2 LEDring devices - one on top and one on bottom. Both read I2C devices so I think can co-exist. Just never needed to find out
I'll try one underneath soon enough - it's not suited my copters / flying style, but I have a new one which will suit...
What I mean was 2 LEDring devices - one on top and one on bottom. Both read I2C devices so I think can co-exist. Just never needed to find out
I'll try one underneath soon enough - it's not suited my copters / flying style, but I have a new one which will suit...
Re: LED Ring I2C device
This is the best multiwii bling ever, i find the satellites lock indicator/count really usefull. I just got this LED ring to work first time, easy enough for noobs like me. Any further development shikra?
Regards
Rizki
Regards
Rizki
Re: LED Ring I2C device
Yeah - its worth it just for the sats counter on its own. I think maybe that will make it more popular.
Great to hear the feedback too - I received same by PM from someone else who just added their GPS.
I think you are only one of a few that have tried with GPS. It's really cool to watch the LED go through the routines..... Best bit.
Anyway for future...
- I set up googlceode /wiki for it yesterday ( mainly because I need to learn svn google process). Will be finished next week.
- It's ready for 2.2 dev releases to better work with new flags method snd provide indicator for Horizon mode + rejigged.
- Probably add a mag/baro indicator for GPS mode.
- pwm support - for non multiwii devices. Can connect to rx channel. Plavnes, naza, etc. etc.
- maybe a few more standalone led layouts / routines.
- see if can shrink the memory down a little, but key thing is want it to process fast, so not going to be doing anything complex
Great to hear the feedback too - I received same by PM from someone else who just added their GPS.
I think you are only one of a few that have tried with GPS. It's really cool to watch the LED go through the routines..... Best bit.
Anyway for future...
- I set up googlceode /wiki for it yesterday ( mainly because I need to learn svn google process). Will be finished next week.
- It's ready for 2.2 dev releases to better work with new flags method snd provide indicator for Horizon mode + rejigged.
- Probably add a mag/baro indicator for GPS mode.
- pwm support - for non multiwii devices. Can connect to rx channel. Plavnes, naza, etc. etc.
- maybe a few more standalone led layouts / routines.
- see if can shrink the memory down a little, but key thing is want it to process fast, so not going to be doing anything complex
Re: LED Ring I2C device
Just ordered this board, Im currently running 2.1 with gps. Is there anything i need to do to the board to get it to work, besides plugging it in and activating in the sketch?
Re: LED Ring I2C device
Yes - there are some basic instructions in the text file that comes with the code.
I am creating a wiki as mentioned. Should be done in the next week or so if work permits.
I am creating a wiki as mentioned. Should be done in the next week or so if work permits.
Re: LED Ring I2C device
I tried to record on a video, but it came out rubbish. The bright LED's confuse the autoexposure on my recorder.
Real shame becaus eteh colours do look real cool.
I don't think its of great use in the air, but on the ground its a real usefull bit of kit for those that run GPS
Anyway, here is an animation. Marginally better than my crap recorded vid!....
http://www.youtube.com/watch?v=c0-WkhtR9_M
Real shame becaus eteh colours do look real cool.
I don't think its of great use in the air, but on the ground its a real usefull bit of kit for those that run GPS
Anyway, here is an animation. Marginally better than my crap recorded vid!....
http://www.youtube.com/watch?v=c0-WkhtR9_M
Re: LED Ring I2C device
Which file do i need to upload to the board? I see on that page a few of them.
I assume this is the one your refering too.
http://www.flypix.co.uk/shikra/ftp/
I assume this is the one your refering too.
http://www.flypix.co.uk/shikra/ftp/
Re: LED Ring I2C device
Its all in the ledring trunk....
in brief
1 file to upload to board.
1 file to replace the original ledring.ino
edit the config to enable ledring.
http://code.google.com/p/multiwii/sourc ... %2FLEDRing
in brief
1 file to upload to board.
1 file to replace the original ledring.ino
edit the config to enable ledring.
http://code.google.com/p/multiwii/sourc ... %2FLEDRing
Re: LED Ring I2C device
Awesome thanks,
I've noticed on all the videos motors off, does it behave the same motors on. Guess ill find out soon, but was just wondering.
I've noticed on all the videos motors off, does it behave the same motors on. Guess ill find out soon, but was just wondering.
Re: LED Ring I2C device
Motors on
ACRO flying - MultiWiicopter Navigation lights / strobe
LEVEL flying - Static Red/Green. Position for orientation.
GPS position hold - Static all Blue
GPS RTH - Flashing all Blue
Battery level low - Fast flashing all Red
Motors off
Unstable position warning - Fast Green flash
Acc not calibrated - Fast Green flash
Acro mode with BARO/MAG disabled - cool MultiWiicopter Navi lights
Motors off - BARO/MAG enabled
ACRO mode - base color = RED
LEVEL/ANGLE mode - base color = GREEN
HORIZON mode - base color = every 2nd LED GREEN
If in LEVL/ANGLE/HORIZON mode:
IF MAG = North direction indicated by single Blue
IF BARO = flash every other blue
Motors off - GPS RTH/POSHOLD enabled
base color = WHITE
no sats = circling red LED (NOT ready to fly)
sats < 5 = flashing RED count of number of sats (NOT ready to fly)
sats 5 pr more = steady RED count of number of sats (ready to fly)
ACRO flying - MultiWiicopter Navigation lights / strobe
LEVEL flying - Static Red/Green. Position for orientation.
GPS position hold - Static all Blue
GPS RTH - Flashing all Blue
Battery level low - Fast flashing all Red
Motors off
Unstable position warning - Fast Green flash
Acc not calibrated - Fast Green flash
Acro mode with BARO/MAG disabled - cool MultiWiicopter Navi lights
Motors off - BARO/MAG enabled
ACRO mode - base color = RED
LEVEL/ANGLE mode - base color = GREEN
HORIZON mode - base color = every 2nd LED GREEN
If in LEVL/ANGLE/HORIZON mode:
IF MAG = North direction indicated by single Blue
IF BARO = flash every other blue
Motors off - GPS RTH/POSHOLD enabled
base color = WHITE
no sats = circling red LED (NOT ready to fly)
sats < 5 = flashing RED count of number of sats (NOT ready to fly)
sats 5 pr more = steady RED count of number of sats (ready to fly)
Re: LED Ring I2C device
OK just got the board. How do I change the led ino in the sketch? Just copy and paste the whole code or is there an easier way.
Re: LED Ring I2C device
Ok loaded the board and move the sketch over, No i have an error when trying to upload it to my quadrino board
It high lights this line in the main Multiwii_2_1
i2CLedRingState();
the bottom says 'i2cLedRingState' was not declared in this scope
So now im lost
It high lights this line in the main Multiwii_2_1
i2CLedRingState();
the bottom says 'i2cLedRingState' was not declared in this scope
So now im lost
Re: LED Ring I2C device
Hi Killab. Good timing - I have a set up a googlecode wiki to help with files and documentation. I think its just about ready. Would appreciate if you have a look to see if it helps.
http://code.google.com/p/ledring/
There is a wiki with some instructions too.
In brief, if using 2.1 there must be a file called led.ino in the sketch. It souds like its missing
http://code.google.com/p/ledring/
There is a wiki with some instructions too.
In brief, if using 2.1 there must be a file called led.ino in the sketch. It souds like its missing
Re: LED Ring I2C device
Well for some reason the folder was not there, maybe i deleted it on accident, so all i did was download the file and then save it in the Multiwii 2.1 file with the other ino files. So i guess thats right.
But then i went to upload it it game me that error. It is defined in the sketch and there is a tab for the ledring.
So guess i will just download it again and try it again.
But then i went to upload it it game me that error. It is defined in the sketch and there is a tab for the ledring.
So guess i will just download it again and try it again.
Re: LED Ring I2C device
Hi guys. I have a small problem.I use the 2.1 software and the Ledring V3(using AIO PRO v1.1 board and Ublox GPS).
Up to now i was using it with this defines:
and the original LED.ino found in the 2.1 source.
Is working ok,showing the north with the blue led and the inclination with the red leds.
Now i wanted to upgrade to the alternate LED.ino and i get the I2C errors.
I defined for the ledring like this:
and changed the LED.ino in the schetch with the alternative one and defined the same I2C address 0x6D.
It wont work even defining the I2C addresses to 0xDA in both boards.
Do i need to uncomment the
?
Thank you for the help and the good work!
Up to now i was using it with this defines:
Code: Select all
#define MultiWii_I2C_v1 // - to use standard Multiwii 2.0/2.1 LED functionality.
#define LEDBOARDv3
#define I2C_address 0x6D
and the original LED.ino found in the 2.1 source.
Is working ok,showing the north with the blue led and the inclination with the red leds.
Now i wanted to upgrade to the alternate LED.ino and i get the I2C errors.
I defined for the ledring like this:
Code: Select all
#define MultiWii_I2C_v2 // - to use Multiwii 2.2rc LEDring functionality. (or 2.1 with alternative LEDring.ino
#define I2C_address 0x6D
and changed the LED.ino in the schetch with the alternative one and defined the same I2C address 0x6D.
It wont work even defining the I2C addresses to 0xDA in both boards.
Do i need to uncomment the
Code: Select all
//#define INTERNAL_I2C_PULLUPS
?
Thank you for the help and the good work!
Re: LED Ring I2C device
download this file - should have correct replacement led.ino sketch. Also the matching ledring.ino
http://ledring.googlecode.com/files/LEDring_2_0.zip
and don't forget to enable in config.h !!
if you are using gps I think you will like!
http://ledring.googlecode.com/files/LEDring_2_0.zip
and don't forget to enable in config.h !!
if you are using gps I think you will like!
Re: LED Ring I2C device
Thank you Shikra for the file,it works perfectly.My last concern is about finding what i need to activate for PH and for RTH options.For the PH i have ACC and BARO and MAG active,as for RTH i only have ACC and MAG active.Is this the correct way of activating things?
Thank you again!
Thank you again!
Re: LED Ring I2C device
Hi,
I have 2 (maybe stupid) questions regarding LEDRing:
- in LEDRing.ino is -
#define I2C_address 0x6D - as a LEDRing address, in contrary in Alarms.cpp is - #define LED_RING_ADDRESS 0xDA
-in LEDRing.ino is - as
int16_t param[10]; //* Parameters passed from Multiwii */, in Alarms.cpp is - uint8_t b[10]; - for same set of parameters
How this supposed to work ? Should not be both equal ?
Robert
I have 2 (maybe stupid) questions regarding LEDRing:
- in LEDRing.ino is -
#define I2C_address 0x6D - as a LEDRing address, in contrary in Alarms.cpp is - #define LED_RING_ADDRESS 0xDA
-in LEDRing.ino is - as
int16_t param[10]; //* Parameters passed from Multiwii */, in Alarms.cpp is - uint8_t b[10]; - for same set of parameters
How this supposed to work ? Should not be both equal ?
Robert
Re: LED Ring I2C device
Partly my error - it was during move from 8 bit to correct 7 bit address for I2C communication and I used older implementation.
It works fine..
I didnt think anyone would notice so never changed. Has been like it for a few release now!
It works fine..
I didnt think anyone would notice so never changed. Has been like it for a few release now!
Re: LED Ring I2C device
Thank you for quick reply Shikra.
I understand the address 8-7 bit change, but how could work int16_t parrams array in LEDRing.ino when we send uint8_t from multiwii is beyond my imagination.
I am asking because I trying to make a small device with one RGB led and ATTiny to signal MWii status but strugling with I2C comms - so digging in LEDRing code a bit.
Robert
I understand the address 8-7 bit change, but how could work int16_t parrams array in LEDRing.ino when we send uint8_t from multiwii is beyond my imagination.
I am asking because I trying to make a small device with one RGB led and ATTiny to signal MWii status but strugling with I2C comms - so digging in LEDRing code a bit.
Robert
Re: LED Ring I2C device
i could not compile without making the boards.txt bit like this instead:
Code: Select all
lilypado.build.core=arduino:arduino
lilypado.build.variant=arduino:standard