Show Posts
Pages: 1 ... 4 5 [6] 7 8 ... 18
76  Topics / Science and Measurement / Re: 9 Degree of Freedom on: October 23, 2013, 06:03:54 am
Hi Baselsw,
do you have any example code or libraries for this sensor?

Sure thing.. Here is my library..

You'll also find example code in the library =).. The library doesn't support the BMP085 yet.. So you can get the values from the accelerometer, gyrometer and magnetometer.. The reason for the lack of support for the BMP085 is that I haven't had any use for it yet.. Maybe in the future =)!

77  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: October 18, 2013, 09:22:04 am
    I am sankha. i made qudocopter using Arduino mega board. i am trying to make that using this code. but this code has compiling errors and i cant to find circuit diagram..... please help me to bild ub this qudo copter..... thank you.   


I've provided the circuit for the different connections in the attachment of my first post.. So go back and look at it.. The code is written for the arduino leonardo/micro.. And won't work out of the box with the mega..

I've got a lot of private messages like this, where people have tried getting this code running on boards other than leonardo/micro..
I'll rewrite/add the missing pieces, to the code in-order for it to work with the UNO and MEGA if I can get any volunteers that can test the code for me on their quadcopters..

78  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: October 15, 2013, 03:02:21 pm
i can unchange the pins but the uno dont have more than 13 pins ...

4 pins for the motors, 4 for the receiver, and 2 for the I2C.. that's 10 pins.. how many do you need??

79  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: October 15, 2013, 03:14:03 am
i changed the motors to 3 9 10 11 pins
and throttle to pin 2 and other 3channel to 4 5 6
i think the interupt of arduino is pins 3 isnt it ?

I'm currently at work.. But i'll look at it as soon as I get home.. Will you be so kind and post all your code changes so I can take a look at them??? Just zip the whole project and post it here...

Edit: Just got back from work.. i looked over your pin choices.. Well yes the interrupts are on pin 2 and 3.. So that also means that you can't use pin 3 for one of the motors.. Why not leave the motor pins as is??? Did you write a new interrupt routine for the receiver? Because the current one won't work on the UNO..

80  Using Arduino / Microcontrollers / Re: Custom Atmega16u2 Breakout Board "Unknown Device " on: October 15, 2013, 03:12:51 am
It should say Arduino UNO because the name is set in the makefile as Arduino UNO, so no problems there... Will you for the sake of it download Arduino 1.0.5 and try those drivers.. Because the drivers in arduino 1.0.5 are signed drivers.. Maybe that will skip some of the windows errors that come up..

81  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: October 14, 2013, 03:46:46 pm
i changed pins because i use arduino uno and i think problem caused bcuz of that .....

Hmm, then what pins did you change to?? You can find the pins definition in the Config.h file..  The throttle is on pin 7.. And it's a interrupt pin on the leonardo.. Did you come around the receiver code, and in that case did you implement it in the firmware???

If you need further help then please provide me with everything you have, so I know how to formulate my answers..

82  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: October 14, 2013, 03:05:53 pm
smiley-grin sorry bro how arm the quad ? i tried all the ways but quadcopter didnot armed and motors didint start anyway

The copter will arm when the throttle is higher than 1100ms.. Just increase the throttle slowly until it arms..
83  Community / Exhibition / Gallery / Re: BlueCopter - Arduino Quadcopter on: October 14, 2013, 12:45:58 pm
hi again.
i have some question i fixed my receiver and now i have some question .
how we can change pid values?  is it compatible with multiwii gui ?

Hmm, if you're talking about my code then no.. To change the PID values you'll have to go to the Config.h file and change them there... You'll find these lines inside the file:

#define ROLL_PID_KP  0.250
#define ROLL_PID_KI  0.950
#define ROLL_PID_KD  0.011
#define ROLL_PID_MIN  -50.0
#define ROLL_PID_MAX  50.0

#define PITCH_PID_KP  0.250
#define PITCH_PID_KI  0.950
#define PITCH_PID_KD  0.011
#define PITCH_PID_MIN  -50.0
#define PITCH_PID_MAX  50.0

#define YAW_PID_KP  0.680
#define YAW_PID_KI  0.500
#define YAW_PID_KD  0.0001
#define YAW_PID_MIN  -50.0
#define YAW_PID_MAX  50.0

#define ANGLEX_KP 5.0
#define ANGLEX_KI 0.02
#define ANGLEX_KD -0.015
#define ANGLEX_MIN -100.0
#define ANGLEX_MAX 100.0

#define ANGLEY_KP 5.0
#define ANGLEY_KI 0.02
#define ANGLEY_KD -0.015
#define ANGLEY_MIN -100.0
#define ANGLEY_MAX 100.0

The first three sections is for the rate mode PID.. And the last two are for the angle mode PID..
84  Using Arduino / Microcontrollers / Re: Custom Atmega16u2 Breakout Board "Unknown Device " on: October 14, 2013, 09:51:38 am
The file loaded, and when I plug it in to the USB it came up as Arduino UNO.
Then windows could not find the driver.  I'll have to investigate after work.
Thanks again for the help.

Just point windows to the arduino uno drivers, for example:
85  Using Arduino / Microcontrollers / Re: Custom Atmega16u2 Breakout Board "Unknown Device " on: October 14, 2013, 09:50:08 am
Could you outline what you did to make the change and compile the hex file?
Just one small change in the "makefile"..  If you go down a bit you'll see a line that says the following..
F_CPU = 16000000
Just change it to:
F_CPU = 8000000

This actually defines the clock reference everywhere in the code.. So by changing it there it'll change everywhere that it's needed during compiling..

Which compiler, which source files are needed, libraries etc ?
I used the avr-gcc that comes with the arduino ide.. So nothing new there.. You need the LUFA libraries/files.. Not any LUFA release will work, but a specific release, LUFA-100807...

I have not used make directly before.

Well, you need some kind of linux environment in-order to make that particular project.. I used cygwin, which is some kind of linux shell for windows ( From there all I had to do is go into the directory for the makefile using "cd" and then type make!

86  Using Arduino / Microcontrollers / Re: Custom Atmega16u2 Breakout Board "Unknown Device " on: October 14, 2013, 06:05:34 am
However, the board (atmega8u2) worked fine initially with 16 MHz crystal I changed it to 8 MHz crystal, and then it failed.


It's not as simple as just changing the crystal and expect it to work.. The clock has to be changed in the firmware also.. I changed the clock to 8Mhz and recompiled the firmware for you.. This firmware is only for the USB serial, without the DFU.. Try it out and report back..

87  Community / Exhibition / Gallery / MakeMeLight - Arduino Ambient Lighting on: October 13, 2013, 09:30:01 am
Greetings my fellow Arduino'ers!!

I had some free time this weekend, so I just made something I wanted for a long time!!......... Some background action for my PC monitor!

I know this idea isn't new, but I believe my approach/results is somewhat different than the standard Ambilight clones out there..

This is a simple ambilight clone that anyone can make.. What you need is a LED RGB strip with WS2801 or WS2811 (though the code is written for the WS2801) , a arduino and a PC with processing 2.0+..

The strip I used has 32 LEDs and the sketch is written for 32 LEDs.. This can easliy be changed by changing the "number of LEDs" constants on the arduino and processing side..

The code expects the leds to be divided on three sides of the screen.. I have 16 LEDs on the top of the screen and 8 on the left and 8 on the right side.. Led number 1 is on the right-bottom side of the screen and led number 32 is on the left bottom side of the screen..

The strip is connected as follows to the arduino:

MOSI (Arduino) <-----> DI (Data input LED Strip)
SCK (Arduino) <-------> CLK (Clock input LED Strip)
5V (USB, ARDUINO) <-------> 5V input on LED Strip
GND (Arduino) <--------> GND input on LED Strip

Now before I continue, words of caution! The Strip is powered by USB in my case, and is working fine because I turned down the brightness of the LEDs.. This can be set in the the processing sketch by changing the variable Brightness.. if you're using 32 LEDs like me, then a value of <110 is okay! Still, if you're unsure then set the value to 64, or power the strip externally...

When everything is hooked and ready, then download the arduino and processing sketch from github:

Open the sketch MakeMeLight.ino in the arduino folder and hit compile followed by upload..

Now start the processing sketch with MakeMeLight.pde (in the processing folder) and hit the "Run" button..

You'll get a simple GUI with four button.. Two buttons for the Sound Mode and two for the display mode.. (See screenshot in the attachments)..

The Sound mode is a VU-meter for the PC speaker output.. So it'll react to the music/sound you're playing.. The left side of the screen will represent the left speaker volume, and the right side of the screen will represent the right speaker volume..

The Display mode is a dynamic ambilight mode.. The meaning with dynamic here is that it reacts "better" to color change compared to other ambilights out there..
If you look at other software ambilight projects, you'll see that they average a chunk of the screen in order to get a high FPS (frames per seconds, or in this case updates per second).. The negative outcome from this is that the ambilight will somewhat feel very static/very still/very boring..

In my case I chose to only average 5 pixels per LED and came out with a average FPS of 20..  The next question you'll ask yourself, why so slow??? Considering that this is a software ambilight (the pixel data is read by getting screenshots of the screen and processing that image) this is a very okay frame rate.. And believe me, you won't notice any flickering.. I made sure of that!

In sound mode, the FPS is around 700-1000 FPS.. The reason is that reading sound data is a fast process, very fast compared to taking screenshots...

Another plus here is that the PC software is written in processing, meaning it's auto cross-platform! =)

I've added some pictures of the LEDs on my screen and the final setup..

Here is some clips demonstrating the two modes:

Display mode:
Sound mode:

If you've got any question please feel free to ask!

88  Community / Exhibition / Gallery / Re: Stab Machine on: October 13, 2013, 06:54:34 am
Hi! My weekend's proyect with Arduino and a line printer.

hahaha!!! ROFL!! Nice, really nice.. And scary!!

Is this for halloween??

89  Using Arduino / Microcontrollers / Re: Reprogram Arduino's own microcontroller on: October 05, 2013, 05:07:55 am

So - does no-one believe me, or was my link wrong, or what?

I believe you =).. The only thing is, you can rarely find a parallel port on a PC today..

90  Using Arduino / Microcontrollers / Re: Wrong or no bootloader on ebay ATMega328P-PU? on: October 05, 2013, 04:47:36 am
Ya, no bootloader, you got it wired wrong or in worst case scenario it's a small brick/fake.. Sparkfun had a similar problem when they ordered from china I believe, read this:

You can program your UNO with the Arduino ISP sketch (, and try putting the bootloader on these chips.. If it doesn't work, well, you got yourself some fake IC's that you can use to practice soldering..

Pages: 1 ... 4 5 [6] 7 8 ... 18