Morner1234
Posts: 8
Joined: Mon Jan 13, 2020 7:25 am

My first Pi project

Mon Jan 13, 2020 7:32 am

Good day, I would just like to know if a raspberry pi can do the following task and if so what other hardware do I need?
It must be able to receive 6 pulses, and then drive 2 12v motors. 3 pulses for the big motor and 3 for the small motor, there should also be a sensor and each pulse has a predefined distance to travel. The last thing I want to add is a start button and stop button, this should not effect the distance traveled but just put it on pause until it is started again. The motors will also only start when the start button is pressed. Any help and information on this will be much appreciated. Thank you all and have a great day.

pcmanbob
Posts: 9467
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: My first Pi project

Mon Jan 13, 2020 12:02 pm

Hi.

Receiving pulses should not be a problem as long as they do not exceed 3.3v, if they do then you would need to use some way of reducing the voltage but it would depend upon what voltage it is.

Driving the motors will required some drive circuits as the pi gpio will not be able to drive them directly , what is required will depend upon the type and rating of the motors.

As you have not specified what the sensor is we can't say if it will work with the gpio but many do.

switch / buttons can be directly connected to the gpio without any problem.

The actual operation and time would be done in the program you will need to write to control the motors and read the pulsed inputs and buttons.

I suggest you start by looking at the physical computing guide it will give you some basics on using the gpio.

https://projects.raspberrypi.org/en/pro ... -computing

You might also look at the projects page build a robot for an example of motor control and a sensor.

https://projects.raspberrypi.org/en/

and finally look at the mag pi which has many projects in it some of which might help you with ideas.

https://magpi.raspberrypi.org/issues
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Return to “General discussion”