Go to advanced search

by danjperron
Mon Apr 29, 2013 2:57 am
Forum: Other projects
Topic: Project Log
Replies: 24
Views: 13895

Re: Project Log

After a lot of struggles with the code for the i2c, I finally got it to work! ( Need to enable AHEN and DHEN in SSP1CON3). So I was able to transfer 5100 words/sec (16bits) using read_word_data() and 14700 words/sec using read_i2c_block_data() with a SMBus at 1Mhz. At 100Khz bus, the speed is 1600 w...
by danjperron
Thu Apr 25, 2013 1:00 am
Forum: Automation, sensing and robotics
Topic: How to communicate with a robot
Replies: 16
Views: 3757

Re: How to communicate with a robot

I see those Possibilities, 1- Use Light . Water is transparent. A direct beam will be good up to certain distance. 2- Use a floating antena . This is how real submarine communicates with the outside world. 3- Maybe the best is to use ultrasound I know this is way way to expensive but this demonstrat...
by danjperron
Wed Apr 24, 2013 11:51 pm
Forum: Other projects
Topic: Project Log
Replies: 24
Views: 13895

Re: Project Log

Thanks, I am now trying to create fonctions like ReadI2c and WriteI2C. This is not in Hitech C library. I think I have it right. I will be able to convert two 10 bit analog signals. It will be possible to set a conversion rate. It will also use RAM buffer. This way, I will not lose any data if the R...
by danjperron
Tue Apr 23, 2013 2:12 am
Forum: Other projects
Topic: Project Log
Replies: 24
Views: 13895

Re: Project Log

I like your post, I just did a servo controller using the pic12f1840. The main reason I bought this 8 pins cpu was to add some A/D conversion on my Rpi project. In your own opinion what could be the fastest transfer speed between a PIC and the RPi using the I2C. That pic will run at it's maximum int...
by danjperron
Tue Apr 23, 2013 1:05 am
Forum: Français
Topic: Communication IP
Replies: 3
Views: 569

Re: Communication IP

by danjperron
Sun Apr 21, 2013 2:34 am
Forum: Français
Topic: Recherche de programme pour un capteur de lumière
Replies: 1
Views: 1122

Re: Recherche de programme pour un capteur de lumière

voici deux pages web pour vous aider

http://poivron-robotique.fr/I2C-sur-le- ... ry-Pi.html
http://www.instructables.com/id/Raspber ... ss-Module/

Ce n'est pas spécifique à votre c.i. mais le code python devrait vous mettre sur le bon chemin

Daniel
by danjperron
Sat Apr 20, 2013 6:27 pm
Forum: Automation, sensing and robotics
Topic: Add small cpu for R/C servo controlled
Replies: 124
Views: 39719

Re: Add small cpu for R/C servo controlled

I correct a small error in my code and some text typo.

If you have already download the hex and C code, please reload it again.

thanks

Daniel
by danjperron
Sat Apr 20, 2013 4:55 pm
Forum: Automation, sensing and robotics
Topic: Add small cpu for R/C servo controlled
Replies: 124
Views: 39719

Re: Add small cpu for R/C servo controlled

I don't think that normal user knows about it or uses the serial port anyway. So I think a permanent fix is the way to go. I'm not sure about the the debug and console in the kernel. Maybe is not an issue. I will need to check it. And for the "/etc/initab" you could modify it and run "init q". This ...
by danjperron
Sat Apr 20, 2013 4:13 pm
Forum: Automation, sensing and robotics
Topic: Servo Control from Python
Replies: 22
Views: 10390

Re: Servo Control from Python

I received the cpu and I was able to create a 4 servos modules.

which it could be enhanced to be a 60 servos system.

I create a new post for it

http://www.raspberrypi.org/phpBB3/viewt ... 95#p335295

Daniel
by danjperron
Sat Apr 20, 2013 4:02 pm
Forum: Automation, sensing and robotics
Topic: Add small cpu for R/C servo controlled
Replies: 124
Views: 39719

Add small cpu for R/C servo controlled

The Rpi is using linux and sometimes the real time process need more accuracy. This is a problem using servos in software mode. You can't be sure that the RPi will be always in time. Adding real time driver into the kernel is also time consuming. Then why not using an other cpu to do the stuff! I kn...
by danjperron
Wed Apr 17, 2013 12:46 am
Forum: Français
Topic: Rpi Portable : Batteries / Accus
Replies: 15
Views: 2406

Re: Rpi Portable : Batteries / Accus

Salut, oui il y a des solutions possibles. Moi j'utilise un power pack Isound 8000ma mais c'est un peut gros pour insérer dans le boîtier du rpi. Il est environ de la même taille. Recherche dans les chargeurs à batterie pour cellulaire. Moi je l'avais déja mais j'ai commandé une version plus profilé...
by danjperron
Wed Apr 17, 2013 12:10 am
Forum: Automation, sensing and robotics
Topic: Controlling two motors with the board
Replies: 15
Views: 13624

Re: Controlling two motors with the board

This is your schematic using eagle and sparkfun libraries.

Well It is what I could decipher.
SimpleMotorDriver.png
Simple motor with relay schematic
SimpleMotorDriver.png (25.25 KiB) Viewed 13134 times
And this is the file

https://dl.dropboxusercontent.com/u/488 ... Driver.sch



Daniel
by danjperron
Tue Apr 16, 2013 10:37 pm
Forum: Automation, sensing and robotics
Topic: Controlling two motors with the board
Replies: 15
Views: 13624

Re: Controlling two motors with the board

What is your drawing software ? Use eagle is available for Mac, windows and Linux (pc). The light version is freeware. http://www.cadsoftusa.com/download-eagle/ And for the motor schematic download the spark fun library https://github.com/sparkfun/SparkFun-Eagle-Libraries/blob/master/SparkFun-Electr...
by danjperron
Tue Apr 16, 2013 12:51 pm
Forum: Automation, sensing and robotics
Topic: Controlling two motors with the board
Replies: 15
Views: 13624

Re: Controlling two motors with the board

Very confusing when you don't use the correct symbol :!:


So what is the coil for ?

Daniel
by danjperron
Tue Apr 16, 2013 11:01 am
Forum: Automation, sensing and robotics
Topic: Controlling two motors with the board
Replies: 15
Views: 13624

Re: Controlling two motors with the board

Yes the led and the transistor will burn if the resistor of my early post is not installed. ;)

Daniel
by danjperron
Mon Apr 15, 2013 11:18 pm
Forum: General discussion
Topic: Time lapse with a Webcam
Replies: 10
Views: 13289

Re: Time lapse with a Webcam

I use imagemagick SnapImage = "/var/www/chart/data/image.jpg" subprocess.call(["/usr/bin/wget","-O",SnapImage,"http://127.0.0.1:10088/?action=snapshot"]) #ok add temperature log f = open('/tmp/stamp.txt') first = f.readline() f.close() subprocess.call(["/usr/bin/convert","-background",'rgba(255,255,...
by danjperron
Mon Apr 15, 2013 11:02 pm
Forum: Automation, sensing and robotics
Topic: Controlling two motors with the board
Replies: 15
Views: 13624

Re: Controlling two motors with the board

Well your motor is always working when you have Power? What is the purpose of your project? Presently you are turning on a led if the switch is on and the gpio output is on. There is no need for the protection diode on the motor since you are directly connected to power! no active component to prote...
by danjperron
Fri Apr 12, 2013 5:46 pm
Forum: Automation, sensing and robotics
Topic: Controlling two motors with the board
Replies: 15
Views: 13624

Re: Controlling two motors with the board

You are correct typo of my part you should limit the high voltage using the diode hook to the power. This is Anode to collector and cathode to power. Motor are like coil. They are coil really. When you release current on a coil , the coil will try to generate the same current by inverting the voltag...
by danjperron
Fri Apr 12, 2013 1:26 pm
Forum: Automation, sensing and robotics
Topic: Servo Control from Python
Replies: 22
Views: 10390

Re: Servo Control from Python

I see your point,

I did order some pic12F1840 to get some A/D to my next RPi project. This is a 8 pins DIP with 6 I/O. I could easily create the code to run 4 servos with it. If someone is interested just tell me.
I will share my code.

Daniel
by danjperron
Fri Apr 12, 2013 12:45 am
Forum: Automation, sensing and robotics
Topic: Controlling two motors with the board
Replies: 15
Views: 13624

Re: Controlling two motors with the board

Well, there is a lot of things you need to check ! But first, How much current your motors use normally when full power is applied and they are stucked? You should know that first to figure out how much current your transistor needs to provide. The maximum rating of your transistors is 100ma. Normal...
by danjperron
Thu Apr 11, 2013 11:26 pm
Forum: Automation, sensing and robotics
Topic: Servo Control from Python
Replies: 22
Views: 10390

Re: Servo Control from Python

Well if cost is an issue you could just buy the cpu itself. I don't know are good you are with micro-controller programming. Does the kit for your kids will include a breadboard? if yes than they could just plug the 18 pins DIP cpu on it! I know that Pololu uses Pic16F628. So you could use the Pic16...
by danjperron
Thu Apr 11, 2013 1:38 pm
Forum: Français
Topic: Voiture RC avec Raspberry Pi embarqué
Replies: 9
Views: 3186

Re: Voiture RC avec Raspberry Pi embarqué

Très bien, bonne chance! Tu peux utiliser un transistor NPN (ex: 2n3904) avec un résistance (10K) entre la base et une sortie GPIO. Le collecteur sur le MCLR. Et l'émetteur à 0V. Ou encore plus simple. Lance le RPi, une fois le tout complété branche l'alimentation du Pololu. Comme cela tu n'aura pas...
by danjperron
Thu Apr 11, 2013 1:31 pm
Forum: General discussion
Topic: Time lapse with a Webcam
Replies: 10
Views: 13289

Re: Time lapse with a Webcam

yes this is good if you use time lapse only. But with mjpegstreamer you could watch in real time using the web browser and it will still capture images without interference.


The idea is I'm able to watch in real time (video mode )and in the background It captures images.

Daniel
by danjperron
Thu Apr 11, 2013 11:11 am
Forum: Français
Topic: Voiture RC avec Raspberry Pi embarqué
Replies: 9
Views: 3186

Re: Voiture RC avec Raspberry Pi embarqué

La structure est un kit http://dx.com/p/zl-4-smart-car-chassis-kit-for-arduino-black-yellow-152992 le reste est construit pièce par pièce. Au sujet du PIC, nous parlons de celui installé sur le contrôleur Pololu qui est déjà programmé et donc impossible à modifié. Les spécifications disent que le Vi...
by danjperron
Thu Apr 11, 2013 1:29 am
Forum: Automation, sensing and robotics
Topic: Servo Control from Python
Replies: 22
Views: 10390

Re: Servo Control from Python

why not using the pololu servo controller

check this post

http://www.raspberrypi.org/phpBB3/viewt ... 94#p309394

Daniel

Go to advanced search