GoPiGo 小汽車《查核 電池》

雖說 GoPiGo 可以用八顆『 AA 電池

AA battery

The AA battery—also called a double A or Mignon (French for “dainty”) battery—is a standard size single cell cylindrical dry battery. The IEC 60086 system calls it size R6, and ANSIC18 calls it size 15.[1] Historically, it is known as HP7 in official documentation the United Kingdom, though it is colloquially known as a “double A battery”.

AA batteries are common in portable electronic devices. An AA battery is composed of a single electrochemical cell that may be either a primary battery (disposable) or a rechargeable battery. The exact terminal voltage and capacity of an AA size battery depends on cell chemistry; however, devices designed for AA will usually only take 1.5 V unless specified by the manufacturer.

Introduced in 1907,[2] the AA battery size was standardized by the American National Standards Institute (ANSI) in 1947, but it had been used in flashlights and electrical novelties for some time before formal standardization. ANSI and IEC Battery nomenclature gives several designations for cells in this size, depending on cell features and chemistry.

AA cells

 

來操作,基於目的、費用、使用時間長短,務需慎選也。之前作者曾用可充電式『鎳氫電池』,美則美矣,不過充電耗時太長,而且大容量電池太貴。今已量得 Raspberry 3B + WiFi + Camera 至少需要 5V/0.5A 以上功率!尚不及於馬達、伺服機制、CPU/GPU 消耗 …… 等等的哩!!

3. Power Up

In this page, we walk you through how to power your GoPiGo.

There are three ways to power the GoPiGo:

1. Using 8 xAA batteries

These are the best option when powering the GoPiGo, and comes with the base kit. With good rechargeable batteries, when running the GoPiGo on 8xAA batteries, you can expect the GoPiGo to run for over an hour.

To power the GoPiGo with AA batteries:

  1. Locate the power connector on the GoPiGo.
  2. Slide the battery adapter connector on to the white plug.
  3. Toggle the power switch to turn on the GoPiGo. The power LED will turn on.

2. Using USB Micro cable

You can use a USB Micro adapter to power the GoPiGo from the Raspberry Pi. This is useful when you are programming and debugging the GoPiGo. Remember that the motors and high powered sensors won’t run when you are only powering the GoPiGo via Micro USB. You must have the batteries connected in order for the motors and sensors to work!

3. Using a custom power supply

If you are more advanced, you can try using a custom power supply between 9V and 12V with a rating of 2A or above to power the GoPiGo. Creating your own custom power supply can be useful if you want to test the GoPiGo with all it’s functionality over a long period of time.  The GoPiGo does not have reverse polarity protection in its power supply: create your own custom power source at your own risk.

Don’t forget to turn on the power switch on the GoPiGo when you start using it.

Have a question?  Go check out our support page here or post it on the forums here.

因此突發奇想查核電路︰

 

,驗證 USB 『行動電源』乎?

……

『八腳章魚』的作法,打算直接用『行動電源』

USB Battery Pack for Raspberry Pi – 10000mAh – 2 x 5V outputs

Description

A large-sized rechargeable battery pack for your Raspberry Pi (or Arduino, or Propeller, or anything else that uses 5V!). This pack is intended for providing a lot of power to an GPS, cell phone, tablet, etc but we found it does a really good job of powering other miniature computers and micro-controllers. If you want something a little smaller, we have a 4400mAh power pack with one USB port that can provide up to 1A We tested it with an iPad mini, iPad 1 & 3 and iPhone 5 & 5s so we know it will charge those models.

Inside is a massive 10,000mAh lithium ion battery, a charging circuit (you charge it via the USB cable attached), and two boost converters that provide 5VDC, 1A and 2A each via a USB A port. (The markings indicate one is good for 1A and one is good for 2A) The 2A output is best for charging tablets or other really power-hungry devices. But either can be used for when you want to power a Beagle Bone or Raspberry Pi, wifi adapters, maybe even small displays. We hooked it up to a 2.5″ NTSC display (powered from the Pi’s 5V breakout lines), wireless keyboard/mouse and a small WiFi dongle and it hummed along just fine as a mini computing setup!

The charging circuit will draw 1A from a 5V supply (plug a microUSB connector into the pack and then to a computer or wall adapter). You can charge and power something at the same time but the output switches to the USB input when charging so the output voltage may fluctuate. Its not good as a ‘UPS’ power supply for an embedded linux board, although microcontrollers like Arduino may not care about the voltage drop as much. Also, there’s ~80% efficiency loss on both ends so if you charge it at 1A and draw 1A at the same time, the battery pack will eventually go empty. However, if you’re powering something thats 500mA or less, you can keep it topped up no problem. Also, when you start and stop charging the pack, it will flicker the output, this can cause a ‘power sensitive’ device like the Pi or an iPhone to reset on the power supply. If using it with a low current load, say under 100mA, the pack may ‘fall asleep’ – you can use this circuit to keep the pack awake

How long it will last depends a bit on what you have connected. We ran a ‘headless’ pi (no keyboard, mouse, display attached) with a mini WiFi adapter plugged into the USB port and pinged it once a second to keep the network connection from going to sleep and it lasted 15 hours. There is a 4-step LED charge status display which you can turn on/off with the button. However, the button is not a general on/off for the entire pack! There’s no way to turn off the pack, as long as something is plugged in, it will power it. If you need a USB power switch, check out this item

Comes with the battery pack and a micro-B cable that you can use for charging the pack or powering a device with a micro B port.

─── 摘自《樹莓派 0W 狂想曲︰ 不大聲以色《♪♪》

 

熟料目前 OK 耶☆

 

 

 

 

 

 

 

 

 

重五

端午節

端午節東亞文化圈民間的一個傳統節日,為每年農曆五月初五,別稱端陽節端日節午日節粽子節天中節五月節五日節  艾節端五重午重五午日夏節菖蒲節,本來是夏季的一個送離五瘟神,驅除瘟疫的節日。後來楚國愛國詩人屈原於端午節投自盡,後在中國演化為端午節,以紀念屈原,有人稱其為詩人節(有些地方是紀念吳國忠臣伍子胥忌日),是華人三大節日之一,與新年中秋等節日同屬東亞文化圈中國大陸香港澳門台灣琉球日本朝鮮半島越南的重要傳統節日

起源

端午節源於對惡日(即農曆五月,因仲夏瘟疫流行而得名)的禁忌 ,也是祭的節日,許多盛行於世的端午習俗都有驅瘟避疫的成分 。雖然中國的端午節常視為紀念楚國詩人屈原吳國忠臣伍子胥的節日,但不少習俗在之前即已流傳,而且不少學者如聞一多考證在屈原投江之前,吳越一帶已有端午節存在。端午節最重要的兩項活動——競渡和吃粽子,都和有關(見聞一多《神話與詩》的《端午考》),可能是迎濤神祭圖騰的習俗。相傳古代中國南方吳越人(今江浙一帶)認為自己是龍的傳人,每年五月初五舉行祭圖騰儀式,以求來年風調雨順、大豐收。他們把食物裹在樹葉或裝在竹筒中(即現在的粽子),投到江裏去。後來他們還有在這天劃著獨木舟拜訪親朋好友的做法。高興時就即興舉行獨木舟賽,慢慢演變成今天過端午節這種習俗。

名稱來源

「端」字有「初始」的意思,因此「端五」就是「初五」。而按照曆法,五月正是「午」月,因此「端五」也就漸漸演變成了現在的「端午」[2]。《燕京歲時記》記載:「初五為五月單五,蓋端字之轉音也。」

香港愉景灣的龍舟競渡

 

中國的南方粽(左)及北方粽(右)

 

 

 

 

 

 

 

 

 

 

GoPiGo 小汽車《查核 WiFi》

不預期之事一旦發生,該說什麼呢?本來好好的 WiFi ,更新後︰

pi@raspberrypi:~ cat /proc/version  Linux version 4.9.24-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #993 SMP Wed Apr 26 18:01:23 BST 2017 pi@raspberrypi:~ 

 

出現

by willie_mctell » Sun Oct 09, 2016 5:04 pm

Just installed most current version and updates on a pi 2. I have a wifi config icon on the task bar. When I left click on it it throws up a “no wireless interfaces found” message. After fooling around for an hour or so I ended up using the wpa_supplicants.conf edit. It works although the gui config icon continues to throw up the “no interfaces” message. I’m hoping that there’s a fix for this since I’m not comfortable having my login information in a plain text file. ifconfig shows for wlan0:

Link encap:Ethernet HWaddr 00:0a:81:88:4e:e3
inet addr:192.168.1.175 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::f942:ec5:35d1:3bb3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:425838 errors:0 dropped:6483 overruns:0 frame:0
TX packets:64068 errors:0 dropped:3 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:240258497 (229.1 MiB) TX bytes:7238665 (6.9 MiB)

Thanks

 

問題?谷歌查訪

WARNING: CPU: 1 PID: 1167 at net/wireless/sme.c:981 cfg80211_connect+0x234/0x588 [cfg80211]() #1607

 

也見徵候︰

[    7.128219] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    7.294883] ------------[ cut here ]------------
[    7.295105] WARNING: CPU: 0 PID: 6 at net/wireless/sme.c:948 __cfg80211_disconnected+0x4a4/0x4fc [cfg80211]
[    7.295144] Modules linked in: bluetooth joydev evdev cdc_acm brcmfmac brcmutil snd_bcm2835 snd_pcm spidev snd_timer spi_bcm2835 snd i2c_bcm2835 bcm2835_gpiomem 8192cu cfg80211 rfkill fixed uio_pdrv_genirq uio i2c_bcm2708 i2c_dev fuse ipv6
[    7.295213] CPU: 0 PID: 6 Comm: kworker/u8:0 Not tainted 4.9.24-v7+ #993
[    7.295217] Hardware name: BCM2835
[    7.295412] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[    7.295447] [<8010fb3c>] (unwind_backtrace) from [<8010c058>] (show_stack+0x20/0x24)
[    7.295460] [<8010c058>] (show_stack) from [<80455200>] (dump_stack+0xd4/0x118)
[    7.295470] [<80455200>] (dump_stack) from [<8011d2c4>] (__warn+0xf8/0x110)
[    7.295479] [<8011d2c4>] (__warn) from [<8011d3ac>] (warn_slowpath_null+0x30/0x38)
[    7.295631] [<8011d3ac>] (warn_slowpath_null) from [<7f101ee8>] (__cfg80211_disconnected+0x4a4/0x4fc [cfg80211])
[    7.295856] [<7f101ee8>] (__cfg80211_disconnected [cfg80211]) from [<7f0d7bbc>] (cfg80211_process_wdev_events+0x1a0/0x1a8 [cfg80211])
[    7.296059] [<7f0d7bbc>] (cfg80211_process_wdev_events [cfg80211]) from [<7f0d7c00>] (cfg80211_process_rdev_events+0x3c/0x70 [cfg80211])
[    7.296251] [<7f0d7c00>] (cfg80211_process_rdev_events [cfg80211]) from [<7f0d2284>] (cfg80211_event_work+0x24/0x2c [cfg80211])
[    7.296360] [<7f0d2284>] (cfg80211_event_work [cfg80211]) from [<80136570>] (process_one_work+0x158/0x454)
[    7.296375] [<80136570>] (process_one_work) from [<801368d0>] (worker_thread+0x64/0x568)
[    7.296386] [<801368d0>] (worker_thread) from [<8013c7d8>] (kthread+0x10c/0x124)
[    7.296399] [<8013c7d8>] (kthread) from [<80108148>] (ret_from_fork+0x14/0x2c)
[    7.296484] ---[ end trace 165eb45beccce060 ]---

 

將如之奈何呦??一時恐只能補過,強打補釘矣!!??

wikiHow to Execute a Script at Startup on the Raspberry Pi

The Raspberry Pi computer is a great tool for creating all kinds of interesting DIY projects and computer-powered builds. Whether it be used as a media center, web server, gaming console, or simply a computer, there are countless reasons why you might need a particular program or script to automatically startup when the Raspberry Pi desktop loads. While there are as many ways to run scripts at startup as there are uses for the Raspberry Pi, executing a script when the desktop environment boots is the easiest method with the most versatility.

 

pi@raspberrypi:~ more .config/autostart/rfkill-autostart.desktop  [Desktop Entry] Type=Application Name=rfkill unblock 0 自動啟動 Comment= X 完成設定後啟動 rfkill unblock 0 Exec=sh -c 'sudo rfkill unblock 0' pi@raspberrypi:~

 

 

 

 

 

 

 

 

 

 

 

 

GoPiGo 小汽車《配備》

鑑於過去使用樹莓派 2B 跑 opencv

講到 RaspiCAM 之應用軟件程式庫,焉能不提及大名鼎鼎的

 OpenCV is released under a BSD license and hence it’s free for both academic and commercial use. It has C++, C, Python and Java interfaces and supports Windows, Linux, Mac OS, iOS and Android. OpenCV was designed for computational efficiency and with a strong focus on real-time applications. Written in optimized C/C++, the library can take advantage of multi-core processing. Enabled with OpenCL, it can take advantage of the hardware acceleration of the underlying heterogeneous compute platform. Adopted all around the world, OpenCV has more than 47 thousand people of user community and estimated number of downloads exceeding 9 million. Usage ranges from interactive art, to mines inspection, stitching maps on the web or through advanced robotics.

ABOUT

OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products. Being a BSD-licensed product, OpenCV makes it easy for businesses to utilize and modify the code.

The library has more than 2500 optimized algorithms, which includes a comprehensive set of both classic and state-of-the-art computer vision and machine learning algorithms. These algorithms can be used to detect and recognize faces, identify objects, classify human actions in videos, track camera movements, track moving objects, extract 3D models of objects, produce 3D point clouds from stereo cameras, stitch images together to produce a high resolution image of an entire scene, find similar images from an image database, remove red eyes from images taken using flash, follow eye movements, recognize scenery and establish markers to overlay it with augmented reality, etc. OpenCV has more than 47 thousand people of user community and estimated number of downloads exceeding 7 million. The library is used extensively in companies, research groups and by governmental bodies.

Along with well-established companies like Google, Yahoo, Microsoft, Intel, IBM, Sony, Honda, Toyota that employ the library, there are many startups such as Applied Minds, VideoSurf, and Zeitera, that make extensive use of OpenCV. OpenCV’s deployed uses span the range from stitching streetview images together, detecting intrusions in surveillance video in Israel, monitoring mine equipment in China, helping robots navigate and pick up objects at Willow Garage, detection of swimming pool drowning accidents in Europe, running interactive art in Spain and New York, checking runways for debris in Turkey, inspecting labels on products in factories around the world on to rapid face detection in Japan.

It has C++, C, Python, Java and MATLAB interfaces and supports Windows, Linux, Android and Mac OS. OpenCV leans mostly towards real-time vision applications and takes advantage of MMX and SSE instructions when available. A full-featured CUDA and OpenCL interfaces are being actively developed right now. There are over 500 algorithms and about 10 times as many functions that compose or support those algorithms. OpenCV is written natively in C++ and has a templated interface that works seamlessly with STL containers.

OpenCV Developers Team:

─── 摘自《樹莓派相機︰ RaspiCAM 之軟件《三》

 

有些覆載吃重,不利於『即時處理』控制事件。雖然用著 GoPiGo 1 的硬體,仍將樹莓派升級到 3B ,且驗之以︰

Browser streaming bot

This example is for streaming video and controlling the GoPiGo from a web browser

Mobile control of the GoPiGo Raspberry Pi Robot

Robot Control and streaming through the browser

Controlling the GoPiGo robot with a mobile phone

Usage:

  • Make robot_web_server.py executable
 sudo chmod +x robot_web_server.py
  • Run robot_web_server.py
 sudo ./robot_web_server.py
  • Open a web browser on any computer or mobile device and enter the following in the address bar:
 dex.local:98

The page runs on dex.local or the IP address of the Pi on port 98

  • The video stream would load up and you can use the joystick on the screen to control the GoPiGo

 GoPiGo

This repository contains source code, firmware and design materials for the GoPiGo.

 GoPiGo

 

發現除了需要先執行

‧ browser_stream_setup.sh

,以及注意網頁路徑

IOError: [Errno 2] No such file or directory: '/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser_Streaming_Robot/www/index.html'

 

外,看來一切 OK

 

。先行者或想讀讀玩玩『basic_test_all.py』乎??!!

 

 

 

 

 

 

 

 

樹莓派 0W 狂想曲︰ 木牛流馬《開始》

有興趣探索『GoPiGo』韌體與軟體 I2C 界面細節者,可以參考

W!o+ 的《小伶鼬工坊演義》︰ 一窺全豹之系統設計《實驗》

# This is the address for the GoPiGo
address = 0x08
debug=0

文本序列同時並行。

此處我們稍稍瀏覽

Python Programming API Functions:

Below is a more detailed description of the functions available with the GoPiGo with Python along with the usage and examples.

Click on the individual links below for more detail on their usage.

Motor control functions:

  • fwd(): Move the GoPiGo forward with PID (better control)
  • motor_fwd(): Move the GoPiGo forward without PID
  • bwd(): Move the GoPiGo back with PID (better control)
  • motor_bwd(): Move the GoPiGo back without PID
  • left(): Turn GoPiGo Left slow (one motor off, better control)
  • left_rot(): Rotate GoPiGo left in same position (both motors moving in the opposite direction)
  • right(): Turn GoPiGo right slow (one motor off, better control)
  • right_rot(): Rotate GoPiGo right in same position both motors moving in the opposite direction)
  • stop(): Stop the GoPiGo

Motor speed Functions:

Encoder Functions:

Ultrasonic ranger read:

  • us_dist(): Read distance from the ultrasonic sensor

LED control:

Servo control:

Status from the GoPiGo:

Have a question or a suggestion?  Go check out our support page here or post it on the forums here

 

然後請讀者或設定好 WiFi ,或者安裝成 AP ,總之使『GoPiGo』的『網路連線』開始自由起來,如是『小汽車』行動方可無礙矣。

挺進軟體應用主題也☆