PhotoFunia-106KB.jpg Paul and Kathy's Hobby Computing KATHY2520at2520assembly-1.JPG

Contents:

Introduction:

The goal is to use the onboard Raspberry Pi 2 running Python to control the Arduino board and accessories(lights, future obstacle avoidance detection). It will be a LOT of work for me to learn Python as I am a slow learner, but part of the hobby is for it to help keep my brain activity up.

The car is not very mobile to bring to the Makershop as the only extra monitor we have to use with it is 21" and rather awkward to bring along. If I am able to get ahold of, or use a makershop monotor while I am visiting, it would be nice. We did just (Feb 1,2016) get a second 4 AA cell case for power when moble. We will use one for the 4v motors, and the second for the Rpi2.

I went to to the Makerspace open hacknight on Feb. 12, 2016 with our car, the battery did not last long so I was not able to show it much. As a result I ordered a 9v power block and battery clip when I got home that evening. It will will give the Arduino 9v power for it and its accessories(Lights, Future avoidance detection). I hope by giving the Rpi2, Arduino and 'L298N' each there own power source it will last longer when not on AC umbilicals.

As I mentioned we would like an autonomous avoidance detection mode. We have not decided on optical or acoustic sensors. Another thing we would like to add to the RPi2 is a camera for remote viewing by SSH to our Android devices and Chromebooks.From there we would like to use something like SSH to remotely control the RPi2. This is a lot for us newbies to the hobby to learn, so if I can bring it in on the friday open house night I would like to, I will be needing all the help I can get.

A photo and progress of our 4wd hobby car as of Feb 2, 2016

Our 4wd car as of Feb 1,2016

Current: Our 4 wheel drive dual layer plexy car chasis. On this chassis is mounted a dual layer plexy rack with a Raspberry Pi 2 on the first and an Arduino Mega 2560 clone above. It uses four 5v motors with a 'L298N' controller with its own 4AA powers cell block, this is controlled by the Arduino board.


New: Another 4AA cell power block powers the RPi2 with an option of a 9v source for the Arduino and its accessories, ie. avoidance detection.

Future: Driving the RPi2 running Python. To have the options of Pre-programed route, Avoidance detection sensor/s, Remote control via Wifi. Camera, Screen.

Hobby Links:

Goals:

  • Learn Python enough to use a RPi2 to program and control an Arduino board using Arduino Skript
  • Programed routes
  • Wifi remote control
  • Avoidance detection - choose laser or sonar
  • Have fun!

Code:

Proper code is by far my weakest point. I am still trying to figure out what code we need to make our system work. I have code to run the Arduino, but it is not yet talking to the RPi2. From there I will need to control the RPi2 by Wifi so I can use SSH to control the car remotely.
  • We are using Linux Ubuntu Pi MATE OS on or Rapberry Pi 2.
  • We are using this Arduino_Driver_Sketch.ino to control the motors in Arduino Skript. The code needs to be modified to recieve commands by the USB connected to our RPi2 running Python.
  • We need some RPi2 Python code that will send controls my Arduino Driver Sketch. We need two-way communicaton as future optical or sonar enviormental detectors will need to send information back to RPi2 to keep the vehicle put of hams way.

Inventory:

Parts from GearBest online:

Parts wish list:

  • Portable RPi screen or HDMI monitor (ebay 5" $25.21)
  • Optical or sonar avoidance detection sensors (Gearbest around $5)
  • Pi Camera (Gearbest Pi cam $26)
  • Body shell (My Wife is conjuring up ideas)

Wiki Comments:
  • I will update my progress here on occasion and learn new Wiki features over time. I will keep a sort of a running updated blog. Old blog posts never get read anyway.
  • I hope to help contribute to other pages as I have somthing useful to add.
-- PaulA - 04 Feb 2016
Topic revision: r16 - 18 Feb 2016, PaulA
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback