Show Posts
Pages: 1 ... 6 7 [8] 9 10 ... 17
106  Using Arduino / Microcontrollers / Re: Arduino Bootloader on: September 05, 2013, 09:57:06 pm
No, you need to bootload the chip.. You don't have to buy a programmer to do that.. You can do it with your UNO..
Look at this: http://arduino.cc/en/Tutorial/ArduinoISP

//Basel
107  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: September 05, 2013, 11:40:54 am
i have made quadcopter with arduino uno and gy_80 sensor i have ppm 4channel radio controller and it is not sum every single channel is ppm . i tried to use your program for this but receiver dont work when i want it to fly .....
" when i connect my ppm receiver to single motor with esc radio control work perfectly but when i use it as quadcopter with code does not work
.........
help me plz . help smiley-sad
faramarz.zareian@gmail.com

Well, it won't work, I'd be surprised if it did.. This sketch is written for the arduino leonardo (atmega32u4), meaning it won't work on the UNO directly, specially the receiver part. The receiver is using the PCINT (pin change interrupts), and because there is no built-in library for arduino I had to address the registers directly, the atmega32u4 registers (which is not the same for the UNO atmega328p)..

For a beginner I recommend the use of MultiWii's code (http://www.multiwii.com/software), my code is "kind of" for people that wants to write their own code and needs some starting ground..

Edit: Another thing I would like to add.. If you decide to modify my code to work with your quadcopter, you'd have to make sure that your ESC supports PWM at a frequency of ~480-500Hz... Most ESC are made to only support PPM.. PPM isn't the same as PWM, the signal looks different and in most ESC is made to run on a frequency of 50Hz...

Here is a whole discussion about the difference: http://forum.arduino.cc/index.php/topic,14146.0.html

And if you decide to replace the 480Hz PWM with 50Hz PPM, you'll have a lot of trouble getting the quadcopter to be stable... With a little luck, you'll maybe be able to fly it in rate mode.. Angle/Level mode needs a faster update rate...
108  Using Arduino / Microcontrollers / Re: MCU with JavaScript - espruino on: September 02, 2013, 01:49:05 am
Cr0sh.. You got 'a lot of points' there =P but I'm the kind of hobbyist that loves SMD! I learned electronics back in high school.. After that I haven't touched or did anything with my education until 2.5 years ago when I discovered the AVR microcontrollers.. Well you can imagine, I went from soldering only through hole components to almost only surface mount.. To me, surface mounts are easier to work with (somehow).. They are smaller and makes your project look neat/cool.. It only took me 3-5 boards in-order to develop a technique for soldering these small things.. It's not hard.. And when I prototype and etch my boards at home, I try to put only SMD's on my boards.. That's because I don't have to drill the boards, which saves me a lot of time and money (smaller boards == cheaper).. Anyhow, that's my opinion! =)

Back to the topic: No, Javascript is a horrible idea.. What's the next step after Javascript??? Developing a robot that writes these javascripts for you?? I can only see a lot of bulkiness and dumm code generated from this..

//Basel
109  Using Arduino / Microcontrollers / Re: Just busted 2 capacitors off my Arduino Mega 1280...can you identify them? on: September 02, 2013, 01:28:12 am
Hey,

Doesn't your board work at all without these caps?? Anyhow, looking at the schematic: http://arduino.cc/en/Main/arduinoBoardMega

These are 100nF decoupling caps for the FTDI..

//Basel
110  Using Arduino / Microcontrollers / Re: Arduino uno single sided PCB on: August 31, 2013, 11:46:21 am
And what about this? (I do not know anything about it, I found it by accident)

http://vonkonow.com/wordpress/2012/10/nanino-the-diy-friendly-arduino/

This needs an external USB to Serial adapter in-order to program it.. So no USB on-board...

//Basel
111  Using Arduino / Microcontrollers / Re: Arduino uno single sided PCB on: August 30, 2013, 05:15:15 pm
I'm sorry to say this bro, but, there isn't any DIP/through hole package for the atmega8u2/16u2.. And I really don't know of any chip in DIP package that does USB Serial conversion... You can maybe make something like this guy: http://forum.arduino.cc/index.php?topic=24460.0

He's uses an atmega8 as the USB to serial chip..

//Basel
112  Using Arduino / Microcontrollers / Re: Arduino uno single sided PCB on: August 29, 2013, 07:31:42 pm
hey guyz i wan to make single sided PcB for arduino uno... i have searched it on google and i found only this

http://arduino.cc/en/Main/ArduinoBoardSerialSingleSided3

but this is a serial programmer... i want usb programmer...
does anybody here has USB version of this single sided board??


Depends on what you want.. Do you want the USB on-board or as an external device?? In-case of external then here is a link: http://vonkonow.com/wordpress/2012/10/nanino-the-diy-friendly-arduino/

In-case you want an internal, you got to specify the USB chip.. Do you want a FTDI, or atmega8u2/16u2 like the uno???
113  Community / Exhibition / Gallery / Re: XBMC TableTop controller on: August 29, 2013, 04:58:39 pm
Looks interesting.. Good job btw! I would like to see the guts on this thing.. Do you mind posting some pictures showing the board and such..??

//Basel
114  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: August 29, 2013, 04:14:01 pm
Do you need an additional device to "bind" or "register" the receiver to the transmitter, or does the one you listed do that?

The packages comes with a transmitter and receiver..

No, you get a 'special' wire that shorts the signal line on the PWR-input to ground (on the receiver).. This will put it in binding mode (Led will start to blink once per second)... In the transmitter all you have to do is hold the bind button and turn it on.. One second later the connection is accomplished, and the led on the receiver will stop blinking =D!

//Basel
115  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: August 29, 2013, 12:03:20 pm
Well done,

many questions pop up
- how high can it fly?
- how long can it stay in the air?
- what does it do when it looses contact with remote?
- ...

-- Pretty high.. I didn't measure the distance yet.. But it's so high that it starts to look like a small fly in the sky (cant see the orientation of the quad, nothing)..
-- I'm using a double 2200mAh (3 cells, LiPo, coupled in parallell).. It gave me approx. 15min of flight..
-- Well I lost contact with it when I pushed the throttle to the max! (meaning it flew very high).. Nothing special happens.. It will stay leveled in the air until battery begins to run out, and it will descend (depending on the ESC ur using, it can descend slowly(ESC cutting power slowly) or it will suddenly stop (ESC cuts the power alltogether)).

And here's my parts list (all from hobbyking.com):

Item/PartPcs
20CM Male to Male Servo Lead (JR) 26AWG (10pcs/set)
1
Hobby King 2.4Ghz 6Ch Tx & Rx V2 (Mode 2)
1
Turnigy 2200mAh 3S 25C Lipo Pack
2
NTM Prop Drive 28 Series Accessory Pack
4
Hobby King Quadcopter Power Distribution Board
1
NTM Prop Drive 28-26 1350KV / 310W
4
HobbyKing 30A BlueSeries Brushless Speed Controller
4
Hobbyking X666 Glass Fiber Quadcopter Frame 666mm
1
8045 SF Props 2pc Standard Rotation/2 pc RH Rotation (Blue)
1

And consider buying spares of ex. propellers and such (if you're a beginner you'll need it)..

//Basel
116  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: August 29, 2013, 10:23:17 am
Awesome project! How much did it cost to build it?

Thanks bro =)..! Well, for the quadcopter parts without the main board (home made btw), around 150 USD. I bought all the parts (frame, ESC, motors, propellers...etc) from hobbyking.

//Basel
117  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: August 25, 2013, 06:22:39 pm
Tweeking takes time. Very good job I would say. Though the drawings are not clear to me at all.
Thats probably cause by my lack of knowledge
Jantje

Thx =).. By drawing I assume you mean the pinout? Well, it's simple.. I used the X-configuration (meaning the quad is flying in a X shape).. If you look at the pinout the motor pins should be,

Left upper motor: Pin 6
Left bottom motor: Pin 5
Right upper motor: Pin 10
Right bottom motor: Pin 9

For RX (receiver), PPM signal (Pulse-position modulation), The pins are as follows:
Roll: Pin 16
Pitch: Pin 14
Yaw: Pin 15
Throttle: Pin 7
AUX1: Pin 8
AUX2: Pin 0

I've also got a LED on pin 13, that indicates if the quad is in rate or level/angle mode..

And of course SDA/SCL for the sensors...

Currently the code only uses the accelerometer and gyrometer to make the quad stable during rate- and angle mode..

In the future I may implement heading hold (magnetometer) and altitude hold (barometer).. Not sure yet, cause I didn't have any need for them...
118  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: August 25, 2013, 04:20:52 pm
Very nice, but I think I'll move it to Exhibition / Gallery.

Thanks for sharing the video and the code.
Hey, thanks Nick =)..  Couldn't figure out where to start the topic..  Good thing you moved it..

//Basel
119  Community / Exhibition / Gallery / BlueCopter - Arduino Quadcopter on: August 25, 2013, 04:01:14 pm
Hey,

I spent the summer working with a new hobby of mine, Quadcopters =D! The quadcopter board is homemade (atmega32u4). Because my board has the same pinout as a leonardo, I decided to go with the multiwii firmware. So I etched a shield for my board containing headers for the receiver, motors and the IMU (cheap chinese found on ebay, ADXL345, L3G4200D, HMC5883 and BMP085).

I was happy with the quadcopter, it flew very nicely (after some PID changes of course).. But in the end I'm the type that likes to write my own code.. Trying to look at multiwii's code to see how they made it work (just to get a hunch), I directly noticed that the code isn't very, hmm how do I put it, reader friendly... So I trashed Multiwii, and there my summer began learning the dynamics and physics of quadcopters.

Three days later, I got a working code.. Three weeks after that I finally managed to find the optimal PID values for my quadcopter =P (yes it took three weeks of tweaking)..

Anyhow I'm not going to bore you out with my story. Instead I'm going to share my code with the arduino community and a video of the quadcopters first flight with my code..

If there is a big demand for a code explanation/theory about quadcopters and how everything works, shout out here, and I'll come up with something for you...

Here is the code: https://github.com/baselsw/BlueCopter

See attachment for pinout..

And here is the video:


Edit: I've updated the code.. Made the sketch run more efficiently and reduced code size.. With this change I managed to find better PID values and thus get better/faster stabilization.. For those interested I've added pictures of the main board and hardware setup..

//Basel
120  Products / Arduino Due / Re: Sam3x8e temperature on: August 13, 2013, 09:00:00 am
Hi Basel,

Just dug up this old thread - I've just burned your temp sensor code to my Due board with BOSSAC, and after about 5 minutes the chip is at ~36.4degrees, and it can't be more than 20 degrees inside here today!

What was ambient when you did the test?

Hey,

Well, can't exactly remember.. But not more than 15-17ºC... 36.4ºC is kinda normal.. The internal temp. sensor isn't that accurate either.. And I don't really know if it needs some kind of calibration.. As long as it's not hot to touch, you don't have to worry..

//Basel
Pages: 1 ... 6 7 [8] 9 10 ... 17