Go to advanced search

by xSpamerx
Thu Dec 12, 2013 1:27 pm
Forum: C/C++
Topic: C++ game programming (beginner)
Replies: 2
Views: 2202

Re: C++ game programming (beginner)

Look at http://www.sfml-dev.org/ , they have there nice tutorials .
by xSpamerx
Sun Nov 24, 2013 11:33 am
Forum: C/C++
Topic: Streaming a Video
Replies: 2
Views: 1285

Re: Streaming a Video

Look at OpenCV and some network lib . I prefer using one from sfml 2.1 .
by xSpamerx
Tue Nov 19, 2013 7:50 pm
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

I'll put here also maybe some helpful links, in case not to loose them,. If somebody can help me, with some explanations in my journey I will appreciate that. https://github.com/strangedev/Arduino-Quadcopter http://forum.arduino.cc/index.php?PHPSESSID=qt1vu7jcf067a94368odgs0dn4&topic=184503.0 https:...
by xSpamerx
Sun Nov 17, 2013 11:10 am
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

I Have a question for you. I'm building a quadcopter on raspberry pi. Now I can get angels using accelerometer and gyroscope. I have 4 motors , controlled by ESC's. I can send pwm signals to them from 1000 to 2000 (1 - 2ms , 1ms off , 2ms max speed ) using pigpio , to which I can send commands direc...
by xSpamerx
Sat Nov 16, 2013 8:00 pm
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

OOP code . Made more accurate sleep . Now it gives more accurate angels.

img http://s019.radikal.ru/i606/1311/b3/4e28cc8c192a.jpg
Image
Code can be downloaded here http://www.sendspace.com/file/9xcb82
by xSpamerx
Wed Oct 23, 2013 5:57 pm
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

Reads data from sensors and prints calculated angels from L3G4200D && ADXL345 func.h #ifndef FUNCS #define FUNCS #include <stdio.h> #include <stdlib.h> #include <linux/i2c-dev.h> #include <fcntl.h> #include <string.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <unis...
by xSpamerx
Thu Oct 17, 2013 12:26 pm
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

you may find this useful http://marks-space.com/2013/04/29/guide-to-interfacing-a-gyro-and-accelerometer-with-a-raspberry-pi/ It is a guide I wrote up on how to interface a gyro and accelerometer with a Pi. It also shows how to convert the values to meaningful angles. I used L3GD20 and LSM303DLHC d...
by xSpamerx
Thu Oct 10, 2013 6:17 pm
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

working continuous ADXL345 readings sample #include <stdio.h> #include <stdlib.h> #include <linux/i2c-dev.h> #include <fcntl.h> #include <string.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <iostream> int main(int argc, char **argv) { printf("**...
by xSpamerx
Mon Oct 07, 2013 6:25 pm
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

Working correct code example for ADXL345 Now I need to use some of the algorithms to reduce the noise. #include <stdio.h> #include <stdlib.h> #include <linux/i2c-dev.h> #include <fcntl.h> #include <string.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #in...
by xSpamerx
Mon Oct 07, 2013 3:59 pm
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

Already know why ( because of the if(read(fd, buf, 6) != 4) not if(read(fd, buf, 6) != 6) ) ... but the huge values of x,y,z ? why ... **** ADXL435 example program **** x:65493 y:65499 z:234 [email protected] ~/cpp/qudcopter $ sudo ./t **** ADXL435 example program **** x:65410 y:60 z:65324 [email protected]...
by xSpamerx
Mon Oct 07, 2013 3:53 pm
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

Re: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples

Why I can't get properly data from ADXL345 ? In the first example the output seems to be a little bit wrong. Some times I get to large values. It seems that the least significant byte i.e 0x33 seems to get data like 0xff 0x00 .... and why In the second code , I can't read data ? Fail on reading data...
by xSpamerx
Tue Sep 17, 2013 7:49 am
Forum: C/C++
Topic: L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?
Replies: 13
Views: 11762

L3G4200D ADXL345 HMC5883L BMP085 i2c any c/c++ examples ?

Does anybody know where I can find c/c++ code for these devices L3G4200D ADXL345 HMC5883L BMP085 to communicate via i2c ? I have configured i2c , and command sudo i2cdetect -y 1 shows me their addresses, but i can't figure out how to interact with them , to get output. On the forum I have found some...
by xSpamerx
Mon Aug 05, 2013 3:26 pm
Forum: C/C++
Topic: How to get input from a joystick without a GUI
Replies: 2
Views: 1831

How to get input from a joystick without a GUI

How to get input from a joystick without a GUI ?
Just using a "console" app ? Without SDL or SFML cause these use Window to get input.
I want to run a c++ program using ssh.
by xSpamerx
Wed Jul 31, 2013 9:22 pm
Forum: Troubleshooting
Topic: Raspberry Pi not booting up
Replies: 2
Views: 711

Re: Raspberry Pi not booting up

May be power supply gives not enough power or something "bad" happened to your distro, try to re install it, I think that should help.
by xSpamerx
Wed Jul 31, 2013 11:16 am
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

RaTTuS wrote:POWERED USB HUB!
don't use un-powered ones
But I don't need it at all.

It worked without any hub... I think that something wrong is with the "software" because in dmesg there are lines about this device but for some reason it is disconnected...
by xSpamerx
Tue Jul 30, 2013 10:37 pm
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

I tried to reinstall it didn't helped. I tried to plug this 4 usb hub in to pc and plug in wi-fi in to hub and even pc can't see it \ power up through the hub. So only the direct plug in to the device can help some how. All I have noticed: - R-pi is turned on and I plug in wi-fi adapter it reboots, ...
by xSpamerx
Tue Jul 30, 2013 8:55 pm
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

I tried to do what is written here Wi-fi config But that didn't help either =\ I plugged in to one of the r-pi usb's a 4 usb HUB ( it is powered by raspberry), and plugged into it a 4 gb usb , and an arduino nano and my wi-fi. When I plugged in wi-fi r-pi didn't go for a reboot, and wi-fi dongle did...
by xSpamerx
Tue Jul 30, 2013 5:29 pm
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

I tired to connect to usb port a 4gb usb storage , and it works fine without a reboot. At least I can say that usb works... And in dmesg it seems that it sees wi-fi dongle but for some reason disconnects it .. Any ideas ? [ 3.212412] usb 1-1.2: new high-speed USB device number 4 using dwc_otg [ 3.32...
by xSpamerx
Tue Jul 30, 2013 3:24 pm
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

Tried to power it up through a usb (not mini-usb). The power source was my external power bank which has an out put of 5V 1A , and wi-fi also didn't turn on. This behavior is strange... I don't actually remember well , but may be I had installed on it some Realtek driver.. at the beginning of my ras...
by xSpamerx
Tue Jul 30, 2013 2:19 pm
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

I tested my fuse , incoming to the fuse voltage is 5.30 , out 5.28. When pi is working in voltage is 5.13v out 5.08 so it seems that fuse is working fine. :shock: May be I need to check something else or may be it is a "software" problem ? ... I don't think that this little wi-fi dongle consumes a l...
by xSpamerx
Tue Jul 30, 2013 12:01 pm
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

It does sound like the dongle has died. But when I plug it in to my pc , it works and can see my wi-fi network. Even when I connect it to Linux virtual machine , after configuring it starts blinking. It's possibly you have damaged the RPi fuse by a short , and now to draw for the dongle is too much...
by xSpamerx
Tue Jul 30, 2013 10:46 am
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

And it didn't help me =\ . Strange ... very strange it worked before and now it doesn't. I wrote Raspbian "wheezy" from 09-02-13 but it doesn't turns on =( When I plug it in it also reboots =\ I need to buy a new wi-fi mini dongle ? ( [ 3.212412] usb 1-1.2: new high-speed USB device number 4 using d...
by xSpamerx
Mon Jul 29, 2013 8:59 pm
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

I formated my SD card. Wrote there new Raspbian “wheezy” and that didn't helped.
My be these errors are because of the update ? Tomorrow I will try to write an old Raspbian “wheezy” image... maybe that would help me ... :shock:
by xSpamerx
Mon Jul 29, 2013 5:05 pm
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

Re: USB port trubble

You may have tripped the fuse. The RPi has a special self resetting type fuse that will reset itself after it cools down. Try removing power from the RPi for a few hours and see if the fuse resets itself. The if wi-fi is plugged in to the usb slot on raspberry pi it isn't turning on. When I plug it...
by xSpamerx
Mon Jul 29, 2013 11:26 am
Forum: Troubleshooting
Topic: USB port trubble
Replies: 20
Views: 2453

USB port trubble

It was working , and in a moment some connections from the bottom side of the raspberry pi touched metal. Wi-fi dongle was in it. And now I't is not turning on. It seems that there is no power at all but I'm new to electronics , and don't know what to do. Wi-fi for my project is badly needed. I use ...

Go to advanced search