Showing posts with label L298N. Show all posts
Showing posts with label L298N. Show all posts

Monday, January 18, 2016

Pi-Bot Pre assembly

   We have been calling our creation Pi-Bot. We have done some pre-assembly to learn how to hook up the circuit pathways and learn how to talk to the chips.

   In this video clip is our Chromebook is temporarily connected to the Arduino board, L298N motor controller and 2 motors. I found the code that works for us on Instructables.  I have been more successful, and got it to work first using my Chromebook first.  I then got it to work on the Raspberry Pi and Arduino IDE once I knew it was working.  Working with the little Raspberry Pi is very slow, but does well once set up. I will do most of my code experimentation on my Chromebook.


   My Wife and I need to get the frame assembled so we can put these parts on the actual machine and at least get it to do some pre-programmed paths on the floor.

   We still are working on how to access the Arduino board using Python on the Raspberry Pi 2.  When I find code that works there we then will have to find a way to incorporate the code all together to make a truly programmable car. 

   We have four simple 2-wire motors that apparently are only used at 1 speed, forward and reverse.  I plan to research digital style motors that have speed control options.  I do not know how much I will have to change the code or car to add this feature, and this sounds a bit scary.  As we are just learning to program Arduino Skript and Python any code we add to the base code we found at Instructables is going to be a difficult trial and error job for us.  I will be looking all over the web for and accepting any help I find on to make our learning curve easier. 

   Eventually we would like to get SSH WiFi remote working, I have only play with this a little but was able to access The Pi 2 terminal by WiFi remote on my Chromebook.  I am a Graphical UI guy so there was not much I could do there.  I want to be able to access the Pi 2 Python IDE th will be connected onboard to control the Arduino board. What a learning curve it has been. 

Wednesday, December 30, 2015

Raspberry Arduino 4wd Smart Car

   To give us something to program together with our Raspberry Pi 2 Kathy and I have ordered parts to build our own car.  We spent an hour before our weekly Bible study working towards learning Python together to this end.  We are going through a Udacity Python 2.7 video course together. 
 $16.89 Arduino Compatible DIY Motor Smart Robot Car Chassis Kit 4 WD-16.89 and Free Shipping| GearBest.com
Arduino Compatible DIY Motor Smart Robot Car Chassis Kit 4WD
All these parts so far were from Gearbest with excellent prices.

   Mounted on our car to control our motors will be a L298N motor drive module and an Arduino compatible Mega 2560 R3 board 16U2 for other accessories like an obstacle avoidance sensor or perhaps a camera.  Also to add we have our Raspberry Pi 2 to give a brain to our new smart car.
 L298N motor controller        Arduino Mega 2560 R3

Our plastic frame, motors and wheels for our car are ready for assembly.



   My Brother Craig, who by the way, just got a Raspberry Pi 2 today in the mail today has been busy getting his Pi set up to his preferences.  He is also going to run Linux Ubuntu Pi MATE.

   Now the learning to program together with my Wife, Brother and another Friend and his father continues.  I look forward to this hobby being something we can all do together as we enjoy some fine association with each other.