sunfounder / picar-4wd Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
I had to update to 3.7 on my pi else my install never finished . After going to 3.7 i see this error .
self._i2c_write_word_data(addr, reg, data)
File "/usr/local/lib/python3.7/site-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/i2c.py", line 21, in wrapper
return func(*args, **kw)
File "/usr/local/lib/python3.7/site-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/i2c.py", line 37, in _i2c_write_word_data
return self._smbus.write_word_data(addr, reg, data)
OSError: [Errno 121] Remote I/O error
pi@raspberrypi:/picar-4wd $ ^C/picar-4wd $ i2cdetect -y 1
pi@raspberrypi:
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- --
Hello,
I have bought picar-4wd for a course in my university. I follow all the Picar-4wd User Manual and everything was fine... but during the testing of the solution with the interface on my local server it didn't work well.
My problem was the following : my two motors on the right side (the 2 and the 4 in the doc) are working in only one direction (only forward), they cannot go backward. I wanted to know if there is a way to permit this two motors to go backward and permit the interface to work.
My interface has also a problem, the buttons do not correspond to the movement they will have to perform, but if we can resolve the problem of the rotation first it would be a first step.
If you have any ideas in order to overcome this problem, i'd be happy. If you need something to understand tell me.
In advance, thank you for your answer.
pi@raspberrypi:~ $ picar-4wd test motor
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/i2c.py", line 17, in wrapper
return func(*args, **kw)
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/i2c.py", line 37, in _i2c_write_word_data
return self._smbus.write_word_data(addr, reg, data)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/picar-4wd", line 11, in
load_entry_point('picar-4wd==0.0.1', 'console_scripts', 'picar-4wd')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2793, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2411, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2417, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/init.py", line 24, in
left_front = Motor(PWM("P13"), Pin("D4"), is_reversed=left_front_reverse) # motor 1
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/pwm.py", line 35, in init
self.freq(50)
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/pwm.py", line 67, in freq
self.prescaler(psc)
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/pwm.py", line 77, in prescaler
self.i2c_write(reg, self._prescaler)
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/pwm.py", line 41, in i2c_write
self.send([reg, value_h, value_l], self.ADDR)
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/i2c.py", line 104, in send
self._i2c_write_word_data(addr, reg, data)
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/i2c.py", line 21, in wrapper
return func(*args, **kw)
File "/usr/local/lib/python3.7/dist-packages/picar_4wd-0.0.1-py3.7.egg/picar_4wd/i2c.py", line 37, in _i2c_write_word_data
return self._smbus.write_word_data(addr, reg, data)
TimeoutError: [Errno 110] Connection timed out
pi@raspberrypi:~ $
Hi there, I recently bought and assembled this kit with the intention of implementing many of the behaviors in Rust. It'd be great if there were PDFs with the schematic diagrams or at least a table explaining the pin out on the PCB and how it aligns with Raspberry Pi header pins. I scanned through the repo and the documentation here: https://docs.sunfounder.com/projects/picar-4wd/en/latest/index.html and couldn't find it.
Thanks for the cool kit!
I tried asking this on the Kickstarter and via e-mail and never received a reply.
My PiCar has a broken part where one of the wheels attaches. It broke in the first week of using it. I do not have a 3D printer so I cannot print my own replacement part. How do I get one?
(sorry to use GitHub issues for this, but I've given up ever getting a response any other way)
After successfully booting the RPI, attaching the hat and powering it, cloning the repo and running sudo python3 setup.py install with warnings:
/usr/local/lib/python3.9/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/local/lib/python3.9/dist-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn(
I receive the following error when trying to run picar-4wd test motor
The solution I found was to install with pip install .
and then update the path to use the new picar-4wd script with export PATH=/home/pi/.local/bin:$PATH
It seems to work for testing the motors, but I'm wondering if this will be an issue later on?
Edit: I'm using RPI 4b imaged with RP Image tool full install. Additional commands that were run prior to cloning the repo are sudo apt update
and sudo apt full-upgrade
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.