Monday, December 20, 2010
VUELA
http://www.youtube.com/watch?v=wWtVtmx6Y0g
El problema principal resulto ser la posicion del APM y el IMU en la nave. Para el codigo nuevo el posicionamiento es el mismo para X y + mode. Pero tuvimos que enfrentar muchos otros problemas. Por ejemplo los motores se estaban apagando solos por que los bullet connectors no eran buenos. El PPM enconder estaba mal configurado. Los ESCs estaban mal configurados entre muchos otros problemas.
Sunday, December 19, 2010
Flight testing
Today we will continue to do fly attempts and PID tuning. I think we have reached a good P value. We are going to stay close to that P and change the I and D values. Let's see what happens.
Arducopter Beta 2
http://diydrones.com/profiles/blogs/arducopter-beta-2-releasegps
Gabriel
Another forum post at DIYDrones
http://diydrones.com/forum/topics/arducopter-pid-tuning-and
I really hope we get some good replies. Anyway things are looking good. Also tomorrow we will pickup new packages from SparkFun and Aeroquad with some goodies that might help us out.
Thursday, December 9, 2010
New Aeroquad order
Monday, December 6, 2010
Forum posts en DIYDrones sobre nuestros problemas con el helicoptero
Creamos estos dos nuevos posts en el foro de Arducopter para ver si la comunidad nos puede ayudar para hacer que la plataforma vuele. Esto despues de haber una conversacion inicial con los desarrolladores a traves del live chat de los foros, incluyendo una conversacion con Jani, uno de los desarrolladores principales. Espero que nos puedan ayudar a encontrar el problema pronto.
Sunday, December 5, 2010
Comunicacion entre Arducopter y ArduRC
Esto es lo que vamos a utilizar como base para la comunicacion entre los proyectos de ambos equipos. Hay que anadirle la habilidad de recibir los comandos de vuelo y la habilidad de enviar la data de los sensores nuevos y otros datos que todavia no ofrece el codigo.
Gabriel
Sunday, November 28, 2010
New IR Thermometer
http://www.futureelectronics.com/en/technologies/semiconductors/analog/sensors/temperature/Pages/4099248-MLX90614ESF-ACF-TU.aspx
MLX90614ESF-ACF-TU
Francisco
Friday, November 5, 2010
Conexion de los arduinos a traves de I2C
Gabriel
Thursday, November 4, 2010
Calculadoras de Prescalers y otras cosas de ATmega
http://www.b9.com/elect/avr/kavrcalc/
Esto nos debe ayudar para el Lab :)
Gabriel
Wednesday, November 3, 2010
Tutorial para conectar Arduinos a través de I2C
Con esto podríamos hacer lo que dice el Profe de usar un Arduino controlado por APM para conectar los sensores.
Gabriel
Setting up Timers in AVR
Gabriel
http://www.avrbeginners.net/
Setting up a TimerSetting up a timer is pretty simple - once you know how it basically works. Once you've set up a timer successfully you can also use the other modes without much learning as all timer modes are based on the same principles.
Right now, we just want to let an LED light up for 1 second after reset. What do we need for that? The best way is to set up a timer (Timer1, the 16 bit timer), switch the LED on and wait. As the timer overflow has an own interrupt, we can write an ISR that switches the LED off again.
First, some stuff that has to be prepared/kept in mind. The following is assumed:
- The program is running on a AT90S2313, the LED is connected to PortB.4 (this pin doesn't have any special functions), cathode connected to PortB.4 via a current limiting resistor and the anode connected to Vcc. That means that the LED is ON when the port pin is LOW.
- The micro is running at 4MHz
- How do we get the timer to overflow after 1 second? 1 second means 4 Million cycles, so we need a big prescaler: 1024 seems to be good. 4,000,000 / 1024 = 3906,25; so after 3906 timer clock cycles the timer has to overflow. As the timers count UP and then overflow from $FFFF to 0 (that's when the ISR is called), we have to load TCNT1 with -3906 (=0xF0BE)
- The interrupt vector for Timer1 overflow is at address 0x0005
Here's the code: (don't forget to include 2313def.inc!!!)
.org 0x0000
rjmp reset
.org 0x0005
rjmp led_off
reset:
ldi r16, low(RAMEND)
out SPL, r16
ldi r16, high(0xF0BE)
out TCNT1H, r16
ldi r16, low(0xF0BE)
out TCNT1L, r16
ldi r16, 0b00000101
out TCCR1B, r16
ldi r16, 0b10000000
out TIMSK, r16
sei
sbi DDRB, 4
cbi PortB, 4
loop:
rjmp loop
led_off:
push r16
in r16, SREG
push r16
ldi r16, 0
out TCCR1B, r16
sbi PortB, 4
pop r16
out SREG, r16
pop r16
reti; reset vector address
; when reset occurs, jump to label "reset"
; Timer 1 overflow interrupt vector address
; jump to "led_off"
;
; reset handler:
; setup stack pointer
;
;
; load timer 1 register (TCNT1) with 0xF0BE
;
;
;
;
; set CS10 and CS12 for 1024 cycle prescaler
;
;
; set bit 7 in TIMSK to enable Timer 1 overflow interrupt
;
;and enable global interrupts
;
; set PortB.4 to output
; switch LED on
;
; loop forever (we're waiting for the interrupt)
;
;
; This is the ISR:
; preserve r16
; save MCU status register
;
;
; stop Timer 1 (clear CS10 and CS12)
;
; Turn off LED
;
; restore SREG
;
; restore r16
; return from interruptSimulating this code in AVR Studio showed that the LED is turned off after 3999759 cycles. When changing the timer value to 0xF0BD the simulator turns the LED off after 4000783 cycles (3999759 + 1024).
This is not the fastest code you can write for this specific problem. As the micro isn't doing anything during the loop, the ISR doesn't need to preserve any register or the SREG, but I included this anyway to remind you of that important step.
No it's up to you to alter this code to use a prescaler of 256 or turn the LED off after some other time interval. Then the TCCR1B and TCNT1 values change. You can also connect the LED to PortB.3 (Output Capture Pin) and use the Output Compare mode of Timer 1 to make the LED flash! It's now just a matter of reading the datasheet or the AVR Architecture -> Timers page (see "modes").
ArduPilot Telemetry Protocol
El autor dice al final:
"I know the protocol sucks but is very flexible and i can add and remove new strings when ever i want without damaging the parsing of every groundstation. In ArduPilot Mega i will use ONLY binary protocol with Message ID's, Payload Bytes and CheckSums, better/faster/efficient/flexible..
"
Hay que explorar si vamos a usar esto como una base para la comunicacion con el ArduRC.
Monday, November 1, 2010
Frames, frame, frames
Francisco había conseguido un frame de una compania de Polonia que se ve bastante nice y esta bastante barato. Pero no hab contestado asi que no sabemos si de verdad no los va a vender o no.
La otra opción es una tienda alemana que se llama MikroKopter. Ellos venden un frame que se ve bastante nice aunque es medio caro pero eso no importa. También esta nítido que venden hasta el power distribution board. Otra ventaja es que un tipo en los foros de DIYDrones esta usando este mismo frame así que le podemos preguntar a el si nos pasa algo malo o si no nos funciona. http://www.mikrokopter.de/ucwiki/en/MikroKopter Algo que me preocupa es que dicen que quedan pocos de todos los frames.
Los motores y los props están disponibles en store.aeroquad.com. Ambos están en stock. Lo único que me preocupa un poco son los motores que quedan como 30.
Para pagar en estas tiendas se necesita PayPal. Vamos a tener que crear una.
Gabriel
Sunday, October 31, 2010
StackExchange de Electronics y Robotics
Omar
Saturday, October 30, 2010
Beagle Board - Es como un Arduino pero para aplicaciones donde se necesite mucho mas poder
The Beagle Board is a low-power, low-cost single-board computer produced by Texas Instruments in association with Digi-Key. The Beagle Board was designed with open source development in mind, and as a way of demonstrating the Texas Instrument's OMAP3530 system-on-a-chip. The board was developed by a small team of TI engineers.[1]
Si fuésemos a hacer lo de computer vision para el copter podríamos usar algo así. Pero ya eso seria para Capstone u otra clase.
Gabriel
GPS Locked , Incorrect Longitude
:D
... PERO... el APM+IMU sirven!
y el GPS tambien...soon :)
Pero reflashear implica soldadura... asi que no podre hacerlo este fin de semana =*(
Dato curioso:
Nuestra longitud es mas o menos -67 o 67 hacia el oeste. EL GPS reporta 188.
188 - ( - 67 ) = 255
Siempre que veo 255 me llama la atencion. Me atreveria apostar que el bug del GPS es por un error de signos. (Estan usando numeros unsigned cuando deben ser signed, o una inconsistencias en los complementos) ... Anyways, thought I'd share with fellow nerds..
Francisco
Wednesday, October 27, 2010
Recibimos este reply
Creo que esto nos trae un poco de esperanza.
if you really need it why don'T you build it yourself?
you have apm and oilpan, ok
you need 4 motors+propellers+ESCs
and a battery
some aluminium profile should do for testing and demo
Francisco
Tuesday, October 26, 2010
Motors, ESC and the like
Monday, October 25, 2010
Tutorial para bregar con strings en AVR
http://www.avrbeginners.net/
AVR Architecture -> SRAM and Flash -> Working with Strings
El resto de los tutoriales en site son buenos tambien.
Gabriel
Saturday, October 23, 2010
Problem? Si, bien grande.
Jani Hirvinen replied to your discussion "Is Arducopter an appropriate platform for our project?" on DIY Drones ------------ Simple answer is: No Could it do it: Yes Due date December: No way Then a bit more explanations. I don't thing any one the currently available quad/hexa platforms can do this. It needs a lot of extra programming and working with sensors. Ok ArduCopter would be rather good platform to start making this happen and this is due that there has been already obstacle avoidance and sonars on ArduCopter and we are working more with those. Developing this type of application even with one of the best quad platforms like AscTec/Mikrodrones etc would take a lot more than few months, you said that project due date is at end of December. Will be really hard if not impossible with this time frame. Ok if we just have simple GPS navigation and possible bottom/sideways ultrasonar systems to make simple obstacle avoidance and altitude hold, yes in that case it would be possible but to make it follow this 6" line.. No i'm afraid that this is too much. MikroKopter / MicroDrones have good GPS hold, best hold is on MicroDrones what I've seen on videos but then again MD systems starts around +20.000 USD what I know so they are totally different level systems. AscTec Quad prices starts at 4-5000 USD. AscTec allows external programming but MD is closed. MK as far as I know does not have any sonars facing down or sideways. They use barometer for altitude hold. I never even saw sonars on their sites. Could ArduCopter platform used for this: Yes you could use it, and this is not yes just because we make them in here. There are many reasons, like I said we already had obstacle avoidance, we already used sonars, we already had basic GPS hold and we also have totally open and hackable software where nothing is hidden or closed. So to include infrareds and others would not be impossible it just needs a lot of work to do this. Maybe in your case we can create even special frame for this purpose. Only enemy on this project would be your time frame. Following that physical cable, ummm sonar might not be the best idea but maybe visual tracking could do the trick. There are already some projects to make camera based tracking but those projects also needs some time. But after all.. This is exactly for what ArduCopter and whole ArduCopter development platform has been designed and planned for. Eg modifying it to higher purposes. I would loooove to see more this type of applications done with ArduCopter. Path is long but it creates really good applications. ------------
In short: Cool idea, no way for december. Tenemos que reunirnos lo antes posible y hablar con el Profesor para ver que vamos a hacer al respecto.
Francisco
Post para el foro de DIY Drones - Is Arducopter an appropriate platform for our project?
http://diydrones.com/forum/topics/is-arducopter-an-appropriate
We're a group of 3 senior computer engineering students and we're thinking of using Arducopter as platform for a class project. We want to build a prototype for what we call a "Power Line Analyzer". This power line analyzer would be an autonomous quadrotor vehicle that would fly over high voltage power lines and gather temperature data of the power line. The actual prototype that we are considering would do the following. Using GPS coordinates of the "power lines" and sonar data, from an a on-board sonar that would be located under the copter, the copter would follow a 6 inch in diameter tube and using infrared thermometers it would store the temperature data of the tube. When a certain threshold temperature is detected the copter would snap a picture and save it on an SD card. Inside the tube we would place some kind of heating elements to increase the tube temperature. In addition the copter would avoid obstacles in its path which it would detect using sonar. This obstacle avoidance would be implemented in the simplest way possible e.g. only avoidance through the sides would be considered. Although this last requirement is not essential if it's too hard to implement. The final due date for the project is around late December. Do you think the Arducopter project is mature enough currently to build this project?Gabriel
Some components we are thinking on using:
TODO for parts ordering.
TODO:
*Determine which GPS component to use, and if we have all the pieces sets.
Omar
Possible arducopter parts, possible outdated
I'm still looking for a good parts list for arducopter. This seems like it can be helpful but I'm not sure if it's complete.
Omar
Interesting project related to Arduino
Python-on-a-Chip (p14p) is a project to develop a reduced Python virtual machine (codenamed PyMite) that runs a significant subset of the Python language on microcontrollers without an OS. The other parts of p14p are the device drivers, high-level libraries and other tools.
Interesting but this definitely reminds me of:
"Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems." - Jamie Zawinski
Francisco
Parts Missing
Thursday, October 21, 2010
Programa para hacer esquematicos para Arduino
http://www.youtube.com/watch?v=Hxhd4HKrWpg
ABOUT FRITZINGFritzing is an open-source initiative to support designers, artists, researchers and hobbyists to work creatively with interactive electronics. We are creating a software and website in the spirit of Processing and Arduino, developing a tool that allows users to document their prototypes, share them with others, teach electronics in a classroom, and to create a pcb layout for professional manufacturing. |
Gabriel
Wednesday, October 20, 2010
ArduCopter Ships in November!?
A message to all members of DIY Drones
ArduCopter pre-orders are now open! $499 for the full UAV, with autopilot and GPS. $270 for the airframe. Shipments will begin in early Nov, first come first served, so get your pre-order in now!
Details hereOrder here.
Ok, WTF?
No seriously, bien BIG WTF?
We need to sit down and think this shit through, hardcore, FAST.
Francisco
Tuesday, October 19, 2010
Arducopter IMU
Monday, October 18, 2010
Saturday, October 16, 2010
Orden de SparkFun esta noche
1 sonar (para ir probandolo)
1 JPeg Trigger + Camara (Para ir probandolo y la camara estaba out of stock y ahora esta de nuevo disponible pero no quedan mucho)
1 Kit de Arduino (Para Carlos)
1 IMU (Quizas)
Gabriel
Diametro de una linea de transmision
Este dice que es de alrededor 5 pulgadas de diamertro. Yo creo que eso es buenas noticias por que es bastantre grande asi que es mas facil de detectar con el termometro y el sonar. Asi que me imagino que para la prueba usaremos algun tubo pvc de ese diametro o algo a si.
Gabriel
Wednesday, October 13, 2010
Great avr tutorial
This is really great AVR tutorial I found. I really hope it helps us prepare for the next lab.
Omar
Tuesday, October 12, 2010
Arudino Programming con Eclipse
http://www.arduino.cc/playground/Code/Eclipse
http://robertcarlsen.net/2009/10/31/arduino-in-eclipse-989
http://www.chipkin.com/articles/using-eclipse-with-arduino-duemilanove
Gabriel
Monday, October 11, 2010
A Tour of the Arduino Internals: How does Hello World actually work?
Todos deberian leer eso para entender como funciona el Arduino. Aun no lo he acabado pero me esta gustando mucho.
Omar
Assembly and Arduino
We are still not one hundred percent sure how to code in assembly for the arduino so we asked on our favorite site!! :) Let's what the reddit community has to say about this. I really love it that reddit has a /r/arduino.
Gabriel
Monday, October 4, 2010
Costo estimado del Arducopter y otra información
Motors 4 x 20$ = 80$
ESCs 4 x 20$ = 80$
Frame = 70$ - 150$
APM = 60$
IMU = 160$
CON/PIN HEADERS = 10$
CABLE = 10$
CONNECTORS = 10$
SUM = 480$ - 560$
COMPASS = 40$
GPS = 35$
CABLE = 5$
SUM = 80$
+SHIPPING ~ 10$ - 60$
COMPLETE ~ 570$ - 700$
Supuestamente esto esta viejo así que no sea cual confiable sea. Tienen mas información útil: http://www.rcgroups.com/forums/member.php?u=316305
Gabriel
Información de contacto de los desarroladores de arducopter
Gabriel
Estatus actual del proyecto
Hoy nos reunimos con el y le propusimos la siguiente funcionalidad:
- Seguimiento de lineas con sonar + GPS
- Perfil de la temperatura de la linea con termómetros infrarrojos
- Cámara para tomar fotos
- SD reader para grabar fotos y data
- Evasión de obstáculos en 2D con sonar. Osea si hay un objeto en el rumbo de navegacion se trata de evadir moviéndose hacia aun lado y que antes de moverse a un lado verifique que no haya obstáculo en esa dirección
Gabriel
Sunday, October 3, 2010
Compra de SparkFun
Gabriel
Wednesday, September 22, 2010
Aeroquad and ArduPilot - More Research
PERO ese IMU ya no lo venden asi que recomiendan Oilpan que es el imu de arducopter.
Asi que efectivamente el ardupilot y el aeroquad son bastante similares "hardware speaking".
El ardupilot es simplemente un arduino mega + oilpan (IMU, la placa azul de arriba)
This is how i understand it so far.
Francisco
Is the Aeroquad using the ArduPilot?
Omar
Aeroquad build instructions and other information
Esto elimina una de las preocupaciones que Omar tenia sobre la plataforma.
Fracisco
Tuesday, September 21, 2010
ArduPilot thoughts
My biggest worry is that there doesn't seem to be someone who has fully documented the process of mounting a quad, which its probably too complicated for us to do from scratch. That is my biggest worry. But honestly I haven't read enough, so I may be wrong. Also, as carlos mentioned, w could use it for other dines, so if we want to do another kind of drone, then we could