Welcome to Multi-Rotor UK. Please login or sign up.

Thursday,April 18, 2024, 13:37:08

Login with username, password and session length

Shoutbox

hoverfly:
17 Apr 2024 17:15:13
 :rolleyes:
Bad Raven:
26 Mar 2024 08:41:05
 :(
Andy7:
25 Mar 2024 14:49:21
An excess of work and rain.  :thumbdown:
Bad Raven:
23 Mar 2024 18:12:38
Almost a personal Blog, it would seem. LOTS of members, but NO posts.  :-/   :shrug:
Gaza07:
06 Mar 2024 16:59:49
Anyone still here  :shrug:
ched:
24 Dec 2023 11:48:48
Hope you all have a Great Christmas and a happy New Year.
Bad Raven:
20 Dec 2023 06:17:47
 ~~   :beer2: 
Gaza07:
19 Dec 2023 22:20:27
Merry Christmas All  :beer2:
Bad Raven:
01 Dec 2023 06:59:57
New Simulator Section started!   :beer2:
Bad Raven:
17 Jun 2023 06:52:23
Yes, smaller, same as lots of things as time passes.
Members
Stats
  • Total Posts: 201,425
  • Total Topics: 20,260
  • Online today: 35
  • Online ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 32
Total: 32

Theme Changer





3d - Printworx

CRIUS AIOP v2 setup + MPNG 2.8R3 + MP 1.2.46 : NO CLI / LEDS / BUZZER

Started by Phil1970, Sunday,September 08, 2013, 12:02:13

Previous topic - Next topic

Phil1970

Hi everyone,

For two weeks have I been struggling with COPTER_LEDS, without succes. I tried different versions of MPNG, 2.9.1R8 gave me the motor rev-up twitch (known problem). So I reverted back to the last known stable version, 2.8R3.

Please note that in order to succesfully upload 2.8R3 to the AIOPv2 you must not use Ardupilot-Arduino 1.0.3 or higher. That would fail and return a long list of errors. For some reason, 2.8R3 can only be uploaded while using Arduino 1.0.1.. I got just one problem, CLI (terminal) in MP doesn';t return the version number and unable to enter setup in terminal. All the rest works, radio calibration, pids, etc...   I did';nt have this when using MPNG 2.9.6.

If someone has a solution for this, please let me know. My current version of MP is 1.2.46

So yes, I finetuned APM_Config.h for the V2, baro and gps following GAZA';s guide. So far so good. I even got the copter leds working (partially....). I followed LAKIS instructions and got green and red leds flashing after booting the AOIPv2, but when my hexa has gps lock, green leds go out. Also when I arm the hexa, red leds go out.

If someone would be so kind to review my coding, I';d apreciate it. Here it is: http://www.easycash.be/files/ArduCopter.zip

For the record, this is how I did my LEDS: two left arms: reds leds, two right arms green leds.
All the positive terminals of the (4strips) 12V leds are on the positive terminal of a 3S lipo
The negative terminals of the green leds are on port 17 of a ULN2803A
The negative terminals of the red leds are on port 18 of the same ULN2803A
Port 1 of the ULN2803A go to analogue pin A5 of the AIOPv2
Port 2 of the ULN2803A go to analogue pin A4 of the AIOPv2
ULN2803A goes to negative terminal of the 3S lipo.

I got an arduino buzzer from HK (3 wires); the negative wire is on the negative pin of a spare motor pinout
The positive and signal wire are together on the AIOPv2 analogue wire A6.

Copter_leds are enabled and I put ';127'; in MP.

I have a feeling I am so close to a working led config,  but with my nose on it, I maybe missing something...

sevet

http://www.rcgroups.com/forums/showpost.php?p=24469344&postcount=5309

Negative of battery goes to ULN 9  (you probably have this)
Also, some configuration need to be made,

I almost got it working on MPNG 3.0.1-R2, GPS and ARM leds work, couldn';t get buzzer working.... yet...

Phil1970

I am currently on MPNG 3.0.1 R1. I read that Sir Alex is working on the copter_leds and this issue will be fixed with 3.0.1-R3. Maybe I should wait. But if you have a working code for R1 or R2, I am willing to give it a try.

Of course, this is a community effort, so thanks and respect to all contributors and testers of the MPNG project.