3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Seeed Pet

Seeed Pet
«
  • P1110868.JPG
  • P1110860.JPG
  • P1110862.JPG
  • P1110861.JPG
  • P1110864.JPG
  • P1110865.JPG
  • P1110851.JPG
  • P1110852.JPG
  • last photo ←
»
SEEED PET is kind of an electronic pet in our studio. It is a platform for the newbie engineers to be familiar with our company’s products and practice. Every newbie engineer will be added some new ideas or elements on the SEEED PET.
The body of the SEEED PET is an HCR (House care robot) mobile robot kit which is a two wheel drive mobile robot platform which has three levels included; Seeeduino V328 is used as the mother board, electronic brick shield V4 and bees shield are used as extension boards. Ultra Sonic range measurement moduleSG-5010 ServoL298 Dual H-Bridge Motor DriverBluetooth Beeaccelerator module and line finder brick are used for functioning.


Part lists
2 x Seeeduino V328
http://www.seeedstudio.com/depot/seeeduino-v328-fully-assembledatmega-328-p-439.html?cPath=79_80

1 x HCR mobile robot kit
http://www.seeedstudio.com/depot/house-care-robot-heavy-duty-platform-p-659.html?

2 x Bluetooth beehttp://www.seeedstudio.com/depot/bluetooth-bee-p-598.html?cPath=2

1 x Ultrasonic range measurement module
http://www.seeedstudio.com/depot/ultra-sonic-range-measurement-module-p-626.html?cPath=84_90.

1 x L298 Dual H-Bridge Motor Driver
http://www.seeedstudio.com/depot/l298-dual-hbridge-motor-driver-p-284.html?cPath=9

1 x SG-5010 Servo
http://www.seeedstudio.com/depot/towerpro-sg5010-servo-p-447.html?cPath=61_63

2 x electronic brick shield V4
http://www.seeedstudio.com/depot/electronic-brick-shield-v4-p-458.html?cPath=48_49

2 x Bees shield
http://www.seeedstudio.com/depot/bees-shield-p-672.html?cPath=104_109
1 x 3-axis accelerator module
3 x Line finder brick
1 x rechargeable storage battery.

Now you can Start to make your own electronic pet

SEEED PET demo code
http://www.seeedstudio.com/blog/upload/SEEEDPET_arduino_code.rar

For more information please visit our blog:http://www.seeedstudio.com/blog/

ENJOY!!!

 
Remove these adsRemove these ads by Signing Up
 

Step 1Make the SEEED PET move

Make the SEEED PET move
«
  • P1110860.JPG
  • P1110862.JPG
To make the SEEED PET move, I need Seeeduino V328, L298 Dual H-Bridge Motor Driver, HCR and storage battery (12V). The storage battery supplies power for L298 Dual H-Bridge Motor Driver board which can output 5V to Seeeduino V328. EA, EB, I1, I2, I3 and I4 on the L298 Dual H-Bridge Motor Driver are connected to the digital pins of the Seeeduino.(note: EA and EB need to input PWM signal, you can make your own PWM signal using the GPI/O of Seeeduino, but here I use the PWM pins of Seeeduino).

TIPS: The speed of the DC motor is control by the PWM duty cycle input from EA and EB (on the L298 Board), there are three pairs PWM output pins on Seeeduino V328( digital pin(3,11 ),(5,6) ,(9,10) each parenthesis is a pair of PWM controlled by Tx/Cx), the default frequencies for Seeeduino V328 are: Pins 5 and 6: 1KHz, Pins 9, 10, 11, and 3: 500Hz. When I use the default frequency(here are pins 9 and 10) to drive the DC motors, it is very noisy, and I was told that the frequency should be higher so that the DC motor would be in its better performance and the noise would be reduced, so I change the frequency at 32Khz(it is reference frequency from the motor supplier).

Here is the reasons why I choose PWM pair pins 9 and 10(related to TIMER1): pair 3 and 11(related to TIMER2) are obvious cannot be used, coz pin3 is used for interrupt 1(INT1) input from the DC motor. PWM pair pins 5 and 6 are related to TIMER0, it is a default Timer/Cunter for many arduino libraries, if it is changed the function like delay() will be incorrect(if you change the default frequency 1khz to 32Khz the function delay() will speed up to 32 times) . As to how to change the frequency you can refer to mega328’s datasheet.

You may complain why my pet can walk straight, that is because the different friction and some other factors between the two DC motors are inevitable. The good thing is the two DC motors of SEEED PET have their own encoders based on photoelectric, each one have two channels output A and B, can be used as quadrature encoding. In this project, because Seeeduino V328 only have two external interrupt inputs(digital pins 2 and 3 ), so I only use one channel of each DC motor to measure the speed of wheel. In this way speed control can be achieved, walking straight won’t be a problem.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
1
Author:jimbo.we