I found a automatic pill dispenser that I'm going to 3D print. But the code is in Arduino IDE but I would like to use it on a raspberry pi. Is there any way to convert the code easily?
Welcome to the forum
How good are you at programming in Python ?
To say the least I'm no good at programming. The whole reason why I would like to use a raspberry pi 3B+ I can get a cheap screen to make this project work. My current pill machine made by Black & Decker is having server issues at the moment and can't get a hold of them to fix it. I also have the bin files but where I am staying right now I don't have access to my Arduino boards. But I do have a raspberry pi with me. Any help with the appreciated in this matter. I will have to farm out the 3D printing part of the project due to the fact that all my 3D printers are down and I do not have the skills to fix them.
You need to 3d print, but you don't have the skills to fix the printers. You need to do a programming language conversion project, but you don't know how to program. I'm sensing a regrettable pattern.
IMO there are two viable routes here:
- Learn the necessary DIY skills, then do the project DIY.
- Give up on the DIY thing, buy a pre-made product that does what you want.
The approach you're using, where you try to do a DIY project without having the relevant skills, is only going to lead to frustration.
Converting code from C++ to Python isn't like converting a .doc to a .pdf. It isn't some basic process that could be really automated. What you have to do is figure out what the Arduino code does and then write Python code to do the same thing. If you don't know how to code then that will be nearly impossible.
If you're really set on having that then perhaps the option would be to postnon the jobs board and pay someone to write it for you.
Arduino language is essentially C++ with some additional libraries for things like reading input pins and controlling output pins.
You can run C++ code on Raspberry Pi. There are libraries available for Pi that you can use to replace the Arduino libraries, at least for some functions like controlling the Pi's GPIO pins. For example:
However, approaching the conversion this way is also not something a beginner or non-programmer can do easily!