Piloto Automático - Desafio

Nada mais interessante do que tirar uma foto de você mesmo do ponto de vista do seu modelo voando, ou do seu bairro, ou dos lugares onde passou as férias, ou então pilotar tendo a visão como se estivesse dentro do seu modelo (FPV). Divida estas imagens conosco!
Avatar do usuário
paulao
membro
Mensagens: 472
Registrado em: Seg Jun 14, 2004 9:39 am
Localização: Niterói Itaipu

Piloto Automático - Desafio

Mensagem por paulao »

Depois que eu comprei um gravador de PIC, montei um DAKAR OSD e o Novelli me ajudou ( e muito) a colocá-lo funcionando, de receber inúmeras dicas do Alex - Marco - Magneto e colegas mais chegados, de ser um zero a esquerda em eletrônica mais de ter vontade de aprender e montar traquitanas, lanço esta discussão e desafio de fazer um Piloto Automático.
Não sei se funciona ou se é o melhor, o mais simples, etc..... É para discutirmos e FAZERMOS UM que se aplique ao nosso aeromodelismo.

[b:43cc350144]SERÁ QUE VALE A PENA A MONTAGEM?[/b:43cc350144]

Pode ser visto no site : http://rcpilot.sourceforge.net/modules/rcap/index.php

Se estiver no local errado peço que seja movido.

R/C Auto Pilot



Have you ever wanted to simply tell your R/C vehicle where to go and simply let it do the rest.

The R/C Auto Pilot, part of the R/C Pilot Project allows you to do this. It uses a standard GPS’s waypoints to navigate a R/C vehicle to either a "Goto" waypoint or it can follow a "Route" of waypoints. It can be used inside of a plane, car, truck, boat or even a robot.

The GPS unit needs to support NMEA at 4800 baud (a standard that most GPSs do support). You connect it to the RCAP using a serial data cable. If you are looking to make your own cable, take a look at http://pfranc.com/. I highly recommend them for Garmin GPS connectors.

The RCAP uses four standard R/C leads to connect to your R/C receiver and battery. Two male leads to connect to two channels of your R/C receiver, one to activate the RCAP the other to pass through the normal signal from your R/C radio while the autopilot is not activated. A third lead (female) from the RCAP connects to a servo to steer your vehicle. The final female lead is used to connect to the battery.

Once a waypoint is activated on your GPS, it will start sending data to the RCAP. (Meaning you MUST have a Goto or Route active at all times on the GPS for the RCAP to function properly when activated). The RCAP will ignore this data and simply pass through your R/C radios instructions while it is not activated. Once activated, by using a spare switch on your R/C radio (gear switch for example) it will then read in the $GPRMB and $GPRMC sentences from your GPS to determine the heading needed to remain on course for the currently active waypoint.

There are 3 adjustments that need to be set on the RCAP.

Servo direction.
Max. servo travel
Course correction gain
Servo direction (slide switch S1) simply allows you to reverse the direction a servo turns while the RCAP is activated. You should test this out before actually putting the RCAP into your vehicle to make sure it matches the expected response.

Max Servo Travel (Variable resistor R2) allows you to set a maximum end point that you will allow a servo to travel. This is especially important when installing the RCAP into an aircraft. I recommend starting with a minimal setting and increasing it slowly.

Course Correction Gain (Variable resistor R3) allows you to adjust how aggressively you want to RCAP to remain on course. A low setting means that the RCAP will slowly turn toward the current course. A high setting will have the turns perform much quicker. The amount of correction used is also proportional to the amount off course the vehicle is, the greater the amount off course, the greater the correction is. I would recommend starting with a minimal setting and increasing it slowly.

The RCAP needs it’s own power source of 6V. A 5-cell R/C receiver battery works well. I will be testing some 2-cell lithium ion polymere batteries shortly and will report on its use in the discussion forums at http://groups.yahoo.com/group/rcpilot/.

When using the RCAP inside of an aircraft, the recommended method would be connecting the planes rudder to the RCAP. An additional method of stabilizing the plane is needed as well. RCAP has been tested with Futaba’s PA-1 and FMA Co-Pilot. Both of these work well with RCAP. Please ensure the method used for correcting your planes stabilization has been tested before installing the RCAP.

Building the RCAP
You may obtain all the necessary files in one of two ways.
You can download a complete archive of version 1.1.
or you may browse the CVS repository on SourceForge

The RCAP is based on MicroChip’s PIC series of microcontrollers. It uses the PIC16F876.

You need to either compile the code using Micro Engineering Lab’s PicBasic Pro or download the HEX file and burn the micrcocontroller using a PIC programmer that can program 28 pin PICs.

A pre-programmed microcontroller is also available at R/C Online Canada.


Next you will need to make a printed circuit board.

You may either use the .PCB file found in the circuit folder or the bw-art file. The .PCB file is in Traxmaker format.

A professionally produced PCB is also available at R/C Online Canada


The rest simply involves soldering the correct components into place.


Click for larger view.

If you are interested in purchasing a complete project kit, PCB, case, components or a pre-assembled RCAP please e-mail mikejp@videotron.ca for details.

Kit Assembly

You need to trim the PCB board to fit inside of the plastic case. This may be done using a band saw, utility knife or many other ways.


Next you will need to drill a hole to hold the voltage regulator heat sink.


Solder in the Vreg with the heat sink below it. If you have some heatsink compound use it between the Vreg and the heatsink. A small bead of solder on bottom of the screw will ensure that it does not come loose.


Solder in the rest of the components using the BOM (Bill of Materials) and the schematic. The casing of the DB9 will need to be removed to fit.
Do not place the RS232 or PIC chips into the sockets until you are completely done soldering and have tested the Voltage Regulator.


Click for larger view.

Solder the appropriate servo wires (not included) for your set up.


Cut out the side of the plastic case to allow the DB9 plug to fit through it. You may also need to trim a bit of the plastic bolt retainers.


Drill 2 holes into the lid to allow you to make adjustments.

Before placing the RS232 or PIC chips into their sockets, measure the voltage coming from the 5V voltage regulator. If it's not close to 5V there is a problem somewhere. Be sure to align the notches of the PCB, sockets and chips.


And now you should have a completed RCAP. Be sure to test it on the ground before using it inside of an aircratf. If your GPS has a simulation mode it is a very convenient way to test the RCAP.

Connecting RCAP
The 2 male leads from the RCAP go into the rudder channel and an auxiliary channel. The 3-wire female lead receives the plug from the rudder servo. The 2-wire female lead connects to a 6V (5 cell) battery.
Anexos
auopilot1.jpg
auopilot1.jpg (16.79 KiB) Exibido 19954 vezes
autopilot12.jpg
autopilot12.jpg (23.54 KiB) Exibido 19954 vezes
autopilot3.jpg
autopilot3.jpg (26.99 KiB) Exibido 19954 vezes
Avatar do usuário
osvaldoljunior
membro
Mensagens: 1905
Registrado em: Sex Ago 17, 2007 12:44 pm
Localização: São paulo, SP - 25 anos

Mensagem por osvaldoljunior »

pra aero vc vai precizar de algo que diga em que posição o aero esteja, tipo giroscopios, para estabilizar o aero..... como o gps vai saber se o aero está de faca ou de dorso sacou? e com a precisão de 1m ou mais dos gps ele pode dar o comando pro lado errado e ai ja viu pra se vai dar tempo de ele corrigir sem lenhar seu aero.
Ou talvez até funcione com um asa alta com um diedro legal e comando do gps somente no leme. mas ai qual é a graça?
Avatar do usuário
Marco Antonio
Equipe E-voo.com
Mensagens: 19364
Registrado em: Seg Dez 29, 2003 4:51 pm
Localização: São Paulo, SP-52

Mensagem por Marco Antonio »

Não precisa disso tudo não, conversando com o alex ele deu a idéia de usar sensores termicor ativos pyrosensores, que é inclusive usado nos OSD para ter aquelas duas barrinhas de posicionamento e em um piloto automatico comercial que vende para aero, usaria quatro deles... é um saquito achar esse componente e quando acha custa uma nota.
Bom, não fiquei tranquilo enquanto não achei e ele pode ser rtirado de sensores de presença.. mas tem que ser o de saida analogica.
Encontrei alguns fabricantes mas deixei isso pra mais tarde.
Aviso: Usuário ainda mais Raivoso! Chegou 2014, daqui pra frente a coisa só piora!!! BUUUUU!!!
Avatar do usuário
paulao
membro
Mensagens: 472
Registrado em: Seg Jun 14, 2004 9:39 am
Localização: Niterói Itaipu

Mensagem por paulao »

E este?

http://alai.h3m.com/~s0350672/rcap3.htm

Mais informações aqui:

http://www.rcgroups.com/forums/showthread.php?t=652952
Avatar do usuário
Marco Antonio
Equipe E-voo.com
Mensagens: 19364
Registrado em: Seg Dez 29, 2003 4:51 pm
Localização: São Paulo, SP-52

Mensagem por Marco Antonio »

Paulo, o problema é manter o aero nivelado, um GPS não tem resolução pra isso não... ou tem??? :roll:

Na minha opinião é usar o sistema com pyrosensores e o GPS
Aviso: Usuário ainda mais Raivoso! Chegou 2014, daqui pra frente a coisa só piora!!! BUUUUU!!!
Avatar do usuário
paulao
membro
Mensagens: 472
Registrado em: Seg Jun 14, 2004 9:39 am
Localização: Niterói Itaipu

Mensagem por paulao »

Caro Marcos e demais amigos eletrônicos que frequentam este site.

Com o MAIOR respeito e, única e exclusivamente, com a finalidade de provocar uma discussão e postagem de opiniões, vou colocar uma pergunta que há muito não me sai da cabeça. Pediria que não levássemos para o lado pessoal e que ofensas e pejorativos fossem deixados de lado. Talvez seja falta de informação minha e de mais alguns.

[b:58eaeebd29]PORQUE NÃO SE VÊM PROJETOS ELETRÔNICOS DESENVOLVIDOS POR AQUI, ABERTOS A TODOS, BARATOS, DE FÁCIL CONSTRUÇÃO E QUE SE APLIQUEM AOS NOSSOS AEROS, postados aqui no forum? [/b:58eaeebd29]

Antes que joguem pedras, há alguns aqui no fórum E-voo e espalhados por aí.
Estou me referindo mais aos de complexidade tais como OSD, FPV, GPS, GIRO, AUTOPILOT, GO HOME, etc etc etc.....
Talvez seja o caso de agruparmos todos em um tópico específico para PROJETOS ELETRÔNICA (existe o Baterias, ......).
Garanto que não é por falta de competência.
Avatar do usuário
Marco Antonio
Equipe E-voo.com
Mensagens: 19364
Registrado em: Seg Dez 29, 2003 4:51 pm
Localização: São Paulo, SP-52

Mensagem por Marco Antonio »

Não estou sendo mal educado, sou grosso mesmo!!!! Sou pela eficiencia, se um idiota como eu fez e não deu certo, quero pelo menos economizar tempo e dinheiro dos outros, falei do pyrosensor e fiquei falando sozinho, então tento mais uma vez da minha boa forma educada e direta e falo.. não vai dar certo!!! Não porque não quero mas porque não funciona, e eu digo mais uma vez.. mania que muita gente tem de achar que com programa as leis da Fisica podem ser destroçadas, mas até mesmo um programa precisa dela pra funcionar.

Inclui ai um pyro ou giromecanico e essa idéia tem futuro, senão vai ser bla,bla bla

Funciona tb com pyro e acelerometro juntos!
Aviso: Usuário ainda mais Raivoso! Chegou 2014, daqui pra frente a coisa só piora!!! BUUUUU!!!
Avatar do usuário
paulao
membro
Mensagens: 472
Registrado em: Seg Jun 14, 2004 9:39 am
Localização: Niterói Itaipu

Mensagem por paulao »

Como a primeira frase não me diz respeito, e portanto a ignoro, afirmo que aceitei suas colocações e concordo em gênero, numero e grau. Me dirigi de uma maneira geral. Também já fiquei falando sózinho aqui no fórum, faz parte. Agora fica zangado não, na foto vc está mesmo grosso, para os lados......... agora que vai fu.er tudo..... :twisted: :twisted: :twisted:

Fiquei sem resposta também para o questionamento.....
Avatar do usuário
osvaldoljunior
membro
Mensagens: 1905
Registrado em: Sex Ago 17, 2007 12:44 pm
Localização: São paulo, SP - 25 anos

Mensagem por osvaldoljunior »

tem um sitema que funcina feito de sensores luminosos ou infrevermelho algo assim inclusive é utilisado nun quad. Mas dependendo de onde vc for voar vc pode ter problemas e com voos indor nun vai funcionar a estabilização.....
Ele trabalha medindo a diferença de luz e achando o horizonte.
Agora imagine em um local que reflete muita luz nun dia nublado.... tipo neve ou muita areia... ele pode se confundir....
Marco acho que com as luzes um acelerometro pede ser dispensado... pq com os giros ele mede a aceleração angular, o acelerometro é para falar pra ele qual o zero que ele deve voltar baseado na aceleração da gravidade em cada eixo. no caso da luz vc ja vai ter a referencia fixa que e o horizonte.
Avatar do usuário
osvaldoljunior
membro
Mensagens: 1905
Registrado em: Sex Ago 17, 2007 12:44 pm
Localização: São paulo, SP - 25 anos

Mensagem por osvaldoljunior »

Paulão... pode ser que muita gente nem se interes pela questão que o marco falou mesmo..... tudo isso custa caro dá trabalho pra fazer funcionar e requer conhecimento.... então em vez de eu montar um sistema ou um projeto ou eu uso meu dinheiro pra comprar ou avião que to babando, ou então compro algo de mercado que ja existe.
Nesse meio termo fica a galera ou que gosta de fazer ou que faz tambem por ser mais em conta.
Responder