12V Peristaltic Pump with raspberry pi

December 26, 2023, 18:19

kill4maryjane

I am looking to have 8 pumps, what stuff would I need please apart from a raspberry pi? https://www.aliexpress.com/item/1005006057879026.html?spm=a2g0o.productlist.main.5.629277a3RMU3GE&algo_pvid=05c78384-5c84-4fa7-abf1-32906b408582&algo_exp_id=05c78384-5c84-4fa7-abf1-32906b408582-2&pdp_npi=4%40dis%21EUR%218.24%214.12%21%21%2163.31%21%21%40211b5e2c17036129817143663edc69%2112000035533770364%21sea%21MT%210%21AB&curPageLogUid=sPTGL3pBw8ak From research I can see that I can't connect these to my raspberry pi directly... Can someone please help as I wish to order the staff and get the project started!

oops.se

You need relay modules that take 3,3v input and a 12v power supply of at least of 8 x 7.5W and some wiring and connectors

oops.se

That relay module needs a 5v power supply

oops.se

Change to the 12v relay module as it has a input range of 0-4v and the Raspberry Pi deliver 3,3volt

kill4maryjane

Is this good sorry for all the questions Im a bit new to electronics…

oops.se

Keep the first 12v power supply and use a 12v relay module

kill4maryjane

Not a problem as there was an option to choose 12v on the relay

oops.se

NP I have over 40 years experience with electronics...

kill4maryjane


oops.se

You have a 8 relay modules as well

kill4maryjane

My last challenge would be what wires do i need to connect my raspberry pi, relay module, power supply and the pumps…

kill4maryjane

I want 9 pumps unfortunately

kill4maryjane

I might also use it for other stuff in the future?

kill4maryjane

Your experience should tell me hehe!

oops.se

Just use a common ground (GND) and then connect all 12v together

kill4maryjane

Let me try to search for that as i need to buy everything at once, thanks

oops.se

And consider a two "6 relay module" saves you some bucks and still have some extras ...

kill4maryjane

Noted, if you have time please explain a bit on what wires i need as i am a bit new and before i purchase the order i need ti be sure that everything is correct… i really appreciate all the help you gave me up till now!

oops.se

If you need flexible cables look at "cheap" speaker cables with 0.5mm2 area

kill4maryjane

So this cable i can cut it to multiple cables and connect everything using the same type of cable?

oops.se

Yes

kill4maryjane

Nice!!! Very interesting

oops.se

And speaker cables have a marking on one of the two leads, so it simplifies keeping plus and minus apart

kill4maryjane

As you can see i lack electrical side, but i am very python fluent, i am a devops engineer…

oops.se

Ahhh perhaps we can trade skills 😉

oops.se

Im stuttering python

kill4maryjane

I can surely help out python wise…

kill4maryjane

Just reach out to me!

oops.se

I have a project where I combine jobb searching with commuting routing.

oops.se

And type casting is a PITA

oops.se

But thats for another time

kill4maryjane

That sounds interesting!

kill4maryjane

So you want to ensure for example that a job is within x amount of distance?

oops.se

And use red = + and black = minus

kill4maryjane

Just found this amazing item on AliExpress. Check it out! €0.46 92% Off | 2 Pin Electrical Wire 16/24/28 Gauge AWG Tinned Copper Insulated PVC UL2468 Extension Cable For Audio Speaker LED Strip Lighting https://a.aliexpress.com/_mqLHz5K

oops.se

Yes, but the current jobsites just take coordinates

kill4maryjane

Is this good? 30m is cery cheap here

kill4maryjane

Its cery easy

kill4maryjane

theres google api

oops.se

I suck at AWG

kill4maryjane

Which you can provide the long and lat and will give you the location

kill4maryjane

Ill build it for you quickly

oops.se

I would use AWG 20 or 22

kill4maryjane

I made a food delivery app, had to do a map where the user puts a marker of where he wants the food to be delivered, i translate the long and lat via google api to street adress

kill4maryjane

I will then buy what you sent me

oops.se

I know I have used OpenStreetMap API for the same and thats free

oops.se

Good luck and just ask again and Im sure someone will assist you

kill4maryjane

from geopy.geocoders import Nominatim def get_address(latitude, longitude): geolocator = Nominatim(user_agent="geo_locator") location = geolocator.reverse((latitude, longitude), language='en') if location and location.address: print(f"Formatted Address: {location.address}") else: print("Address not found.") latitude = 57.7749 longitude = 14.5059466 get_address(latitude, longitude)

kill4maryjane

just change your latitude and logitude...

kill4maryjane

result example:

oops.se

Well my data train is: Work/Job API supply address. Commute API needs coordinates or address. And then I combine that data into a list of work/job with commuting distance. The major problem is that some job hunting companies is using their adr. and not the real work adr. but I am trying to get the Swedish job agencies to change that...

kill4maryjane

Yeah that might be slightly challenging… if i can help let me know!

kill4maryjane

This is my cart, apart from plastic tubes and the raspberry pi itself, do you think that i need anything else?

oops.se

Yes do you have soldering or crimping equipment ? You need to connect the pump and cables together.

oops.se

kill4maryjane

I can buy a soldering kit, meaning i will not need the items you sent right?

oops.se

It depends on how lazy you are 😉 And yes it is either soldering, screws or quick connect

kill4maryjane

What you suggest…

oops.se

If you need to change and test = Quick connect, semi permanent = Screws and permanent = Solder

kill4maryjane

I still find it odd how that single wire will work for all my components( i understand that i will be splitting it into multiple wires by cutting) but still see it off how that single wire will wirk…

kill4maryjane

Thanks fir the info!!!

oops.se

Do a schematic drawing and use that as a checklist when doing the connecting

kill4maryjane

Anyways, other than my 9 pumps, and raspberry pi i will be ordering these, should i press checkout? Anything else you think i need??

oops.se

Just some electric tape, but I think that you can find that where you find soldering eq. So yes you can press order

kill4maryjane

I really appreciate you mate

kill4maryjane

Literally a lot!!!

kill4maryjane

Thanks that i found your guidance

oops.se

Your welcome

kill4maryjane

good evening all, I now have the items, any one can maybe provide me with some tips/documentation on how I can maybe connect the relay board, Peristaltic and power supply? Thanks