Hi good people, I've been trying to wrap my head around multiwii for a while now without much success.
I have a well flying tricopter with Multiwii v 2.3 (current Dev release with Navigation)
I have designed and programmed my own WS2812B controller with an ATiny85 and I have a couple extra GIOPs available.
I noticed int he config file there is implementation for landing lights and led flasher.
I've been tinkering with the code trying to get something activated but i end up with a broken multiwii code.
I basically want to receive a signal from my board when the barometer goes below a set number in comparison to when it was armed.
I also want Alarms to signal through my controller.
How do i enable this or how could i go about coding it in? I'm not even sure where to start.
I can do pin interrupts for simple low/high logic, i can also attempt serial communication.
My board is the Multiwii pro v2 from hobby king. its a mega 2650 based board that does not have outputs pins for things like a buzzer or LED. but since I'm using a tri configuration I have some spare motor pins as well as cam stab outputs.
Any help or suggestion is welcomed.
Help with LED controller integration
-
- Posts: 97
- Joined: Mon Sep 08, 2014 12:25 am
Re: Help with LED controller integration
same here. i running ver 2.2, and if i enable the landing lights by commenting out the // the sketch fails to compile...
Re: Help with LED controller integration
Hi SargentSeven,
I don't have any problems enabling Landing Lights. Have you commented out all four relevant lines as follows?
As to your plan to control the WS2812B device: forget it!
It requires a time periode of 1.25us resulting into 800,000 baud. The multiwii controller wouldn't do any thing else than controlling the WS2812B device. So, the flight controlling would be blocked...
Even the serial out would be too slowly (115.000 baud).
I described a non-blocking control of 3 lights which show the status of the copter in viewtopic.php?f=16&t=4779
I don't have any problems enabling Landing Lights. Have you commented out all four relevant lines as follows?
Code: Select all
/******************************* Landing lights *********************************/
/* Landing lights
Use an output pin to control landing lights.
They can be switched automatically when used in conjunction
with altitude data from a sonar unit. */
#define LANDING_LIGHTS_DDR DDRC
#define LANDING_LIGHTS_PORT PORTC
#define LANDING_LIGHTS_BIT PORTC0
#define LANDING_LIGHTS_INVERT
As to your plan to control the WS2812B device: forget it!
It requires a time periode of 1.25us resulting into 800,000 baud. The multiwii controller wouldn't do any thing else than controlling the WS2812B device. So, the flight controlling would be blocked...
Even the serial out would be too slowly (115.000 baud).
I described a non-blocking control of 3 lights which show the status of the copter in viewtopic.php?f=16&t=4779
-
- Posts: 97
- Joined: Mon Sep 08, 2014 12:25 am
Re: Help with LED controller integration
do i need to have sonar enabled to get this to work ?
-
- Posts: 97
- Joined: Mon Sep 08, 2014 12:25 am
Re: Help with LED controller integration
got it enabled now on sketch, and working in multiwii.conf just need to find the output pin thanks...
should be ok now...
should be ok now...
Re: Help with LED controller integration
@handsomejackuk
The definition of the landign lights are defined in file config.h as follows:
The definition of the landign lights are defined in file config.h as follows:
Code: Select all
/******************************* Landing lights *********************************/
/* Landing lights
Use an output pin to control landing lights.
They can be switched automatically when used in conjunction
with altitude data from a sonar unit. */
//#define LANDING_LIGHTS_DDR DDRC
//#define LANDING_LIGHTS_PORT PORTC
//#define LANDING_LIGHTS_BIT PORTC0
//#define LANDING_LIGHTS_INVERT
-
- Posts: 97
- Joined: Mon Sep 08, 2014 12:25 am
Re: Help with LED controller integration
QuadBow wrote:@handsomejackuk
The definition of the landign lights are defined in file config.h as follows:Code: Select all
/******************************* Landing lights *********************************/
/* Landing lights
Use an output pin to control landing lights.
They can be switched automatically when used in conjunction
with altitude data from a sonar unit. */
//#define LANDING_LIGHTS_DDR DDRC
//#define LANDING_LIGHTS_PORT PORTC
//#define LANDING_LIGHTS_BIT PORTC0
//#define LANDING_LIGHTS_INVERT
i got it thanks took a bit of research into my ports, as they are different and i have special needs to where they are located
THANK YOU
