• Stars
    star
    133
  • Rank 272,600 (Top 6 %)
  • Language
    C
  • Created over 9 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sunfounder Smart Video Car Kit for Raspberry Pi

Sunfounder Smart Video Car Kit for Raspberry Pi

Quick Links:

About this kit:

The SunFounder Smart Video Car Kit for Raspberry Pi is composed of Raspberry Pi, DC-DC Step-down Voltage Module, USB camera, DC motor driver, and PCA9685-based Servo Controller. From the perspective of software, the smart car is of client/server (C/S) structure. The TCP server program is run on Raspberry Pi for direct control of the car. And the video data are acquired and delivered via the open source software MGPJ-streamer in a real-time manner. The TCP client program is run on PC to send the control command. Both the client and server programs are developed in Python language. The smart car is developed based on the open-source hardware Raspberry Pi and integrates the knowledge of mechanics, electronics, and computer, thus having profound educational significance.

You can now control your Smart video car with an Android phone! (Details in html_server/README.md)

Download the Android App from Google Play

Notice:

Before you run the client routine, you must first run the server routine.

Update:

  • 2016/10/08:
    • Fix servos turn to extreme angle.   + Add setting frequency.
  • 2016/09/12:
  • arrange the pca9685 module to one module.
  • 2016/09/07:
    • merge cali_client_win.py to cali_client.py    - Windows users now can run cali_client.py on windows.
  • 2016/06/28:
    • add API file for Html server
      • API files in html_server/APIs.md
  • 2016/05/16:
    • add i2cHelper.py
      • For those who gets IOERROR: [Errno 2] No Such File Or Directory, Try run the i2cHelper.py:

              sudo python i2cHelper.py
        

2016/05/09:

  • add android app control. Control the car via the gravity sensor on a cell phone, so you can control the car and the camera onside, as well as view the camera video in real time. What's more, on the app, you can conveniently calibrate the car turning and the pan-tilt. (Details in html_server/README.md)
  • add windows calibration support

2016/03/29:

  • fixed speed control
  • fixed turning angle
  • removed useless button

2016/03/22:

  • fixed Raspberry Pi 3 compatibility.

2015/xx/xx:

  • improve i2c number getting, solved IOError: "[Errno 2] No such file or directory" problem for some Pi.

Trouble Shootings:

I2C Trouble

IOError: [Errno 2] No such file or directory

Error accessing 0x40: Check your I2C address

IOError: [Errno 5] Input/output error

This normally means Raspberry Pi could not find the I2C device. So here's what you can do:

  • Hardware problem:
    If you are using a DC adapter for your Raspberry Pi, you need to connect the GND between Servo Controller and Raspberry Pi. Because they are common-grounded by the micro USB, and if you use a DC adapter, you have to make another wire for common-ground.

  • Software problem:
    Just Run the i2cHelper.py with

     sudo python i2cHelper.py
    

    And after i2cdetect, and you should see your Servo Controller's address: 0x48

_tkinter.TclError

pi@raspberrypi:~/Sunfounder_Smart_Video_Car_Kit_for_RaspberryPi/client $ sudo python cali_client.py
Traceback (most recent call last):
  File "cali_client.py", line 7, in <module>
    top = Tk()   # Create a top window
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1813, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

This usually happens when you try to run cali_client.py or client_App.py on Raspberry Pi remotely. Like using PuTTy.

  • Reason: cali_client.py and client_App.py run under the tkinter, which need a $DISPLAY, usually a GUI. Remotely log in to Raspberry Pi normally under bash, which is a CLI.
  • Solution: Try run the cali_client.py and client_App.py directly on your PC or Mac. It needs Python 2.7 installed on your computer. So:
    1. Go to python.org, download the lastest release of Python 2.7 for the operating system you are using, and install.
    2. Go to the github repository, and download the source code by clicking the green button on the right.
    3. Unzip the zip file.
    4. Edit the HOST in cali_client.py or client_App.py with Python IDLE (in Windows, usually, right click the .py file and select "Edit in IDLE"), and select Run => Run Module F5 to run the module.

About SunFounder:

SunFounder is a technology company focused on Raspberry Pi and Arduino open source community development. Committed to the promotion of open source culture, we strives to bring the fun of electronics making to people all around the world and enable everyone to be a maker. Our products include learning kits, development boards, robots, sensor modules and development tools. In addition to high quality products, SunFounder also offers video tutorials to help you make your own project. If you have interest in open source or making something cool, welcome to join us!


Contact us:

website: www.sunfounder.com

E-mail: [email protected]

More Repositories

1

SunFounder_SensorKit_for_RPi2

SunFounder Sensor Kit V2.0 for Raspberry Pi 2
Python
112
star
2

SunFounder_PiCar-V

Smart Video Car Kit V2.0 for Raspberry Pi from SunFounder
Python
108
star
3

Sunfounder_SuperKit_Python_code_for_RaspberryPi

Sunfounder Super Kit Python code for Raspberry Pi
Python
59
star
4

davinci-kit-for-raspberry-pi

Python
58
star
5

Sunfounder_SensorKit_Python_code_for_RaspberryPi

Sunfounder Sensor Kit Python code for Raspberry Pi
Python
37
star
6

SunFounder_PiCar

Python
35
star
7

picar-x

34
star
8

SunFounder_PiCar-S

SunFounder Smart Sensor Car Kit for Raspberry Pi
Python
31
star
9

Sunfounder_SuperKit_C_code_for_RaspberryPi

Sunfounder super kit C code for Raspberry Pi
C
30
star
10

picar-4wd

Python
27
star
11

picrawler

PiCrawler robot from SunFounder
25
star
12

SunFounder_Super_Kit_V3.0_for_Raspberry_Pi

SunFounder Supet Kit V3.0 for Raspberry Pi
Python
23
star
13

SunFounder_PCA9685

SunFounder PCA9685
Python
20
star
14

kepler-kit

This is a learning kit for Raspberry Pi Pico W
Python
19
star
15

raphael-kit

Python
19
star
16

sunfounder_vincent_kit_for_arduino

Vincent Kit For Arduino
C++
14
star
17

nas-kit

SunFounder NAS Kit for Raspberry Pi
Python
14
star
18

sunfounder-uno-and-mega-kit

C++
13
star
19

robot-hat

Robot Hat python library
Python
13
star
20

pan-tilt-hat

Pan-tilt Hat Kit
Python
13
star
21

euler-kit

C++
13
star
22

pironman

Python
12
star
23

SunFounder_PiSmart_Car

SunFounder PiRobot Car
Python
11
star
24

Sunfounder_SuperKit_for_Arduino

This super kit is suitable for the SunFounder Uno, SunFounder Mega 2560, SunFounder Duemilanove, and SunFounder Nano. All codes found in the user guide are compatible with these boards.With this kit, we will walk you through the basics of using the SunFounder board in a hands-on way. Starting with the basics of electronics, you'll learn through building several creative projects. Including a selection of the most common and useful electronic components, this kit will help you control the physical world.
Arduino
11
star
25

vilib

Vision library for python
Python
10
star
26

SunFounder_Dragit

A visual programming service base on snap
JavaScript
10
star
27

pico_4wd_car

Python
10
star
28

SunFounder_Crawling_Quadruped_Robot_Kit_for_Arduino

Arduino
10
star
29

Sunfounder_SensorKit_C_code_for_RaspberryPi

Sunfounder SensorKit C code for Raspberry Pi
C
8
star
30

SunFounder_MagicKey

Arduino
6
star
31

DIY_Control_Robot_Arm_kit_for_Arduino-Rollarm

C++
6
star
32

thales_kit

C++
6
star
33

SunFounder_DHT11

SunFounder_DHT11
Python
6
star
34

pipower

5
star
35

Sunfounder_StarterKit_Python_code_for_RaspberryPi

Python
5
star
36

SunFounder_PiSmart

Python
5
star
37

python-sh3001

SH3001 6-axis IMU python library
Python
5
star
38

picar-x-web-control

Remote control web control for PiCar-X
Python
5
star
39

Sunfounder_StarterKit_C_code_for_RaspberryPi

Sunfounder Start Kit C code for Raspberry Pi
C
5
star
40

SunFounder_TB6612

SunFounder_TB6612
Python
4
star
41

3in1-kit

This is a three-in-one kit that combines IoT/Smart Car/learning projects into one.
C++
4
star
42

rgb_matrix

RGB Matrix
Python
4
star
43

pisloth

PiSloth from SunFounder
Python
4
star
44

SunFounder_Emo

Python
4
star
45

Sunfounder_UltraKit_C_Code_for_RaspberryPi

Sunfounder Ultra Kit C Code for Raspberry Pi
C
4
star
46

zeus-car

SunFounder FPV Omni Car for Arduino
C++
4
star
47

SunFounder_Ultrasonic_Avoidance

SunFounder UltraSonic Avoidance
Python
3
star
48

Sunfouder_RFIDKit_for_Arduino

Arduino
3
star
49

sunfounder-controller

Python
3
star
50

piarm

Jupyter Notebook
3
star
51

ultimate-sensor-kit

Code for SunFounder Ultimate Sensor Kit
C++
3
star
52

SunFounder_Raspberry_Pi_Beginner_Kit

Python
3
star
53

Sunfounder_UltraKit_Python_Code_for_RaspberryPi

Sunfounder ultrasonic kit Python code for Raspberry Pi.
Python
3
star
54

pidog

Raspberry Pi Robot Dog from SunFounder
Python
3
star
55

SunFounder_Dot_Matrix

SunFounder_Dot_Matrix
Python
3
star
56

SunFounder_Line_Follower

Python
3
star
57

SunFounder_RTC_Nano

SunFounder RTC Nano
Python
3
star
58

Smart_Video_Car_app_for_android

Smart_Video_Car_app_for_android, write with Mit app inventor2
2
star
59

sloth-kit

C++
2
star
60

pxt-sloth

A SunFounder Sloth package for pxt-microbit
TypeScript
2
star
61

SunFounder_Retro_IO_Controller

SunFoudner_Retro_IO_Controller
Python
2
star
62

raspad3

Python
2
star
63

sensor-kit-v2-for-arduino

C++
2
star
64

rascam

Python
2
star
65

home-assistant-addon

Shell
2
star
66

RasPad-example

Python
2
star
67

Sunfounder_BaseKit_Python_Code_for_RaspberryPi

Sunfounder Base Kit Python Code for Raspberry Pi
Python
2
star
68

elite-explorer-kit

Code for SunFounder Elite Explorer Kit
C++
1
star
69

ai-camera-firmware

C++
1
star
70

SunFounder_Light_Follower

Python
1
star
71

universal-maker-sensor-kit

Code and documentation for Sunfounder Universal Maker Sensor Kit
Python
1
star
72

SunFounder_Rollbot

Arduino
1
star
73

SunFounder_Wi-Fi_Helper

Python
1
star
74

sunfounder-io

SunFounder I/O Python library for Raspberry Pi
Python
1
star
75

Makeitfun

Code for all interesting projects we made
1
star
76

SunFounder_AI_Camera

C++
1
star
77

sunfounder-create-agent

1
star
78

docs

1
star
79

esp-4wd

C++
1
star
80

super-kit-v2-for-pi

1
star
81

galaxy-rvr

C++
1
star