Submit Search
Upload
2017 Week 6 Automatic Mobile Vehicle
•
0 likes
•
18 views
A
AkashaC1
Follow
2017 Week 6 Automatic Mobile Vehicle
Read less
Read more
Technology
Report
Share
Report
Share
1 of 26
Download now
Download to read offline
Recommended
數位訊號與類比訊號、IO腳位設定、數位輸出/入控制、暫存器作業指令、類比輸出/入控制、矩陣鍵盤掃描、7段顯示器、點矩陣LED、伺服馬達控制、LCD顯示控制
Arduino基礎IO控制
Arduino基礎IO控制
吳錫修 (ShyiShiou Wu)
Chapter 3 XBee無線遙控車
Chapter 3 XBee無線遙控車
CAVEDU Education
Raspberry pi implement Wireless S4A protocol using python
S4A
S4A
艾鍗科技
2018/05/18 Aapato 創客工作坊 春季班第五周講義
Week5 驅動程式
Week5 驅動程式
Hsiu Wei Hsu
LinkIt ONE tutorial #1- Basics
LinkIt ONE tutorial #1- Basics
LinkIt ONE tutorial #1- Basics
CAVEDU Education
介紹mBot組裝程序及基本測試
mBot組裝與測試
mBot組裝與測試
吳錫修 (ShyiShiou Wu)
六足機器人的基本結構,基本上包含機器人本體結構、Raspberry Pi 控制核心、馬達驅動板、電力系統。首先,針對機器人本體結構,每一足將有3顆伺服馬達,故六足共有18顆伺服馬達使六足機器人可以達到所有可能的走行模式。馬達驅動板的部份,我們以2個PCA9685模組(I2C界面具16通道PWM輸出)來進行18顆伺服馬達的控制。 在電力系統的部份,由於六足機器人在所有的伺服馬達同時動作時,消耗約4A電流,故我們串聯了3顆18650電池,以提供12.6v電壓及最大電流輸出6A作為主要的電力來源。系統中再以LM2596及LM1117進行不同的DC-DC轉換,以提供系統其他部件所需的5V及3.3V 工作電壓。另外,馬達驅動電源部份,使用了XL4015恆壓模組,使伺服馬達具備穏定電壓源而能夠更穏定靈活轉動。 最後,Raspberry Pi控制核心主要為軟體設計的部份,我們完成了一個低階的PWM馬達驅動程式與一個高階並行控制運動演算法,使六足機器人能進行基本的直線、橫移與旋轉等運動行為。 為使六足機器人更具智慧,我們加入了超音波感測器以進行障礙物偵側、也加入USB Webcam 使六足機器人具備即時影像串流的能力並且再其底部加入一顆伺服馬達使Webcam鏡頭能左右轉向。另外,也加入PIR人體感測器,一旦偵測到人時, Webcam會立即拍下畫面,並傳送照片檔到雲端相簿。 最後,我們設計一個 Android APP並以Wi-Fi通訊方式來控制六足機器運動控制、其中即時影像串流的能力以Android Webview來實現,而手機對雲端相簿的存取則Android volley來完成。
用Raspberry Pi 完成一個智慧型六足機器人
用Raspberry Pi 完成一個智慧型六足機器人
艾鍗科技
Raspberry pi 遙控車
Raspberry pi 遙控車
Raspberry pi 遙控車
Chen WeiZhi
Recommended
數位訊號與類比訊號、IO腳位設定、數位輸出/入控制、暫存器作業指令、類比輸出/入控制、矩陣鍵盤掃描、7段顯示器、點矩陣LED、伺服馬達控制、LCD顯示控制
Arduino基礎IO控制
Arduino基礎IO控制
吳錫修 (ShyiShiou Wu)
Chapter 3 XBee無線遙控車
Chapter 3 XBee無線遙控車
CAVEDU Education
Raspberry pi implement Wireless S4A protocol using python
S4A
S4A
艾鍗科技
2018/05/18 Aapato 創客工作坊 春季班第五周講義
Week5 驅動程式
Week5 驅動程式
Hsiu Wei Hsu
LinkIt ONE tutorial #1- Basics
LinkIt ONE tutorial #1- Basics
LinkIt ONE tutorial #1- Basics
CAVEDU Education
介紹mBot組裝程序及基本測試
mBot組裝與測試
mBot組裝與測試
吳錫修 (ShyiShiou Wu)
六足機器人的基本結構,基本上包含機器人本體結構、Raspberry Pi 控制核心、馬達驅動板、電力系統。首先,針對機器人本體結構,每一足將有3顆伺服馬達,故六足共有18顆伺服馬達使六足機器人可以達到所有可能的走行模式。馬達驅動板的部份,我們以2個PCA9685模組(I2C界面具16通道PWM輸出)來進行18顆伺服馬達的控制。 在電力系統的部份,由於六足機器人在所有的伺服馬達同時動作時,消耗約4A電流,故我們串聯了3顆18650電池,以提供12.6v電壓及最大電流輸出6A作為主要的電力來源。系統中再以LM2596及LM1117進行不同的DC-DC轉換,以提供系統其他部件所需的5V及3.3V 工作電壓。另外,馬達驅動電源部份,使用了XL4015恆壓模組,使伺服馬達具備穏定電壓源而能夠更穏定靈活轉動。 最後,Raspberry Pi控制核心主要為軟體設計的部份,我們完成了一個低階的PWM馬達驅動程式與一個高階並行控制運動演算法,使六足機器人能進行基本的直線、橫移與旋轉等運動行為。 為使六足機器人更具智慧,我們加入了超音波感測器以進行障礙物偵側、也加入USB Webcam 使六足機器人具備即時影像串流的能力並且再其底部加入一顆伺服馬達使Webcam鏡頭能左右轉向。另外,也加入PIR人體感測器,一旦偵測到人時, Webcam會立即拍下畫面,並傳送照片檔到雲端相簿。 最後,我們設計一個 Android APP並以Wi-Fi通訊方式來控制六足機器運動控制、其中即時影像串流的能力以Android Webview來實現,而手機對雲端相簿的存取則Android volley來完成。
用Raspberry Pi 完成一個智慧型六足機器人
用Raspberry Pi 完成一個智慧型六足機器人
艾鍗科技
Raspberry pi 遙控車
Raspberry pi 遙控車
Raspberry pi 遙控車
Chen WeiZhi
Micro:bit RF 遙控車
Ch12Micro:bit RF 遙控車
Ch12Micro:bit RF 遙控車
台灣程式教育協進會(TCEA)
此簡報為教育部種子教師人才培育計畫的物聯網計畫 其中一部份即為msp430
第三章Ti msp430平台介紹 v3
第三章Ti msp430平台介紹 v3
冠宇 陳
Iot tech with education
Iot tech with education 物聯網技術在教育上的應用
Iot tech with education 物聯網技術在教育上的應用
kuoyichen
160603 T客邦7688物聯網實作坊
160603 T客邦7688物聯網實作坊
160603 T客邦7688物聯網實作坊
CAVEDU Education
introduction of LinkIt Smart 7688 Duo and MCS basics. Contents includes environments setup (Arduino IDE and Web UI); SSH log in; How to program nodejs and python on 7688; Mediatek Cloud Snadbox introduction. And finally let your 7688 duo interact with MCS. More interesting: http://www.cavedu.com
LinkIt Smart 7688 Duo and MCS basics
LinkIt Smart 7688 Duo and MCS basics
CAVEDU Education
Hackthon Taiwan 6th 演講:IoT 與 WoT 物聯網裝置實作:使用 Arch Pro 與 mbed。2015 年 4 月 11 日在台開金融大樓。
IoT 與 WoT 物聯網裝置實作:使用 Arch Pro 與 mbed
IoT 與 WoT 物聯網裝置實作:使用 Arch Pro 與 mbed
Bang Min Shiue
IoT development board based on ESP8266. Using a hybrid web technology(RESTful, Web socket, Web components, UART, MQTT) to design your project. Web site : http://wf8266.com/wf8266r
WF8266R IoT DEV Board 物聯網開發版
WF8266R IoT DEV Board 物聯網開發版
通聯行動創意科技有限公司 Union U Inc.
認識 RoBoard 硬體
認識 RoBoard 硬體
roboard
#1247 Sensor and Controller Student book Chinese version-Part 1 Copyright by Genius Toy Taiwan Co., Ltd.
#1247 Sensor and Controller Student book Chinese version-Part 1
#1247 Sensor and Controller Student book Chinese version-Part 1
Sandy Lu
How to Prevent DNS Attacks on MikroTik
How to Prevent DNS Attacks on MikroTik.pdf
How to Prevent DNS Attacks on MikroTik.pdf
AkashaC1
Config RouterOS openVPN
Config RouterOS openVPN.pdf
Config RouterOS openVPN.pdf
AkashaC1
AR Implementation 1 2016.10.20
AR Implementation 1 2016.10.20
AR Implementation 1 2016.10.20
AkashaC1
AR Implementation 2
AR Implementation 2
AR Implementation 2
AkashaC1
Post article to KM with Python
Post article to KM with Python
Post article to KM with Python
AkashaC1
2018 Week 7 Data Analysis
2018 Week 7 Data Analysis
2018 Week 7 Data Analysis
AkashaC1
2018 Week 5 DHT11
2018 Week 5 DHT11
2018 Week 5 DHT11
AkashaC1
2018 Week 4 PIR
2018 Week 4 PIR
2018 Week 4 PIR
AkashaC1
2018 Week 15 Speech Recognition
2018 Week 15 Speech Recognition
2018 Week 15 Speech Recognition
AkashaC1
2018 Week 15 Speaker
2018 Week 15 Speaker
2018 Week 15 Speaker
AkashaC1
2018 Week 14 HC-SR04
2018 Week 14 HC-SR04
2018 Week 14 HC-SR04
AkashaC1
2018 Week 13 Servo Motor
2018 Week 13 Servo Motor
2018 Week 13 Servo Motor
AkashaC1
2018 Week 12 Data Storage and Visualization
2018 Week 12 Data Storage and Visualization
2018 Week 12 Data Storage and Visualization
AkashaC1
More Related Content
Similar to 2017 Week 6 Automatic Mobile Vehicle
Micro:bit RF 遙控車
Ch12Micro:bit RF 遙控車
Ch12Micro:bit RF 遙控車
台灣程式教育協進會(TCEA)
此簡報為教育部種子教師人才培育計畫的物聯網計畫 其中一部份即為msp430
第三章Ti msp430平台介紹 v3
第三章Ti msp430平台介紹 v3
冠宇 陳
Iot tech with education
Iot tech with education 物聯網技術在教育上的應用
Iot tech with education 物聯網技術在教育上的應用
kuoyichen
160603 T客邦7688物聯網實作坊
160603 T客邦7688物聯網實作坊
160603 T客邦7688物聯網實作坊
CAVEDU Education
introduction of LinkIt Smart 7688 Duo and MCS basics. Contents includes environments setup (Arduino IDE and Web UI); SSH log in; How to program nodejs and python on 7688; Mediatek Cloud Snadbox introduction. And finally let your 7688 duo interact with MCS. More interesting: http://www.cavedu.com
LinkIt Smart 7688 Duo and MCS basics
LinkIt Smart 7688 Duo and MCS basics
CAVEDU Education
Hackthon Taiwan 6th 演講:IoT 與 WoT 物聯網裝置實作:使用 Arch Pro 與 mbed。2015 年 4 月 11 日在台開金融大樓。
IoT 與 WoT 物聯網裝置實作:使用 Arch Pro 與 mbed
IoT 與 WoT 物聯網裝置實作:使用 Arch Pro 與 mbed
Bang Min Shiue
IoT development board based on ESP8266. Using a hybrid web technology(RESTful, Web socket, Web components, UART, MQTT) to design your project. Web site : http://wf8266.com/wf8266r
WF8266R IoT DEV Board 物聯網開發版
WF8266R IoT DEV Board 物聯網開發版
通聯行動創意科技有限公司 Union U Inc.
認識 RoBoard 硬體
認識 RoBoard 硬體
roboard
#1247 Sensor and Controller Student book Chinese version-Part 1 Copyright by Genius Toy Taiwan Co., Ltd.
#1247 Sensor and Controller Student book Chinese version-Part 1
#1247 Sensor and Controller Student book Chinese version-Part 1
Sandy Lu
Similar to 2017 Week 6 Automatic Mobile Vehicle
(9)
Ch12Micro:bit RF 遙控車
Ch12Micro:bit RF 遙控車
第三章Ti msp430平台介紹 v3
第三章Ti msp430平台介紹 v3
Iot tech with education 物聯網技術在教育上的應用
Iot tech with education 物聯網技術在教育上的應用
160603 T客邦7688物聯網實作坊
160603 T客邦7688物聯網實作坊
LinkIt Smart 7688 Duo and MCS basics
LinkIt Smart 7688 Duo and MCS basics
IoT 與 WoT 物聯網裝置實作:使用 Arch Pro 與 mbed
IoT 與 WoT 物聯網裝置實作:使用 Arch Pro 與 mbed
WF8266R IoT DEV Board 物聯網開發版
WF8266R IoT DEV Board 物聯網開發版
認識 RoBoard 硬體
認識 RoBoard 硬體
#1247 Sensor and Controller Student book Chinese version-Part 1
#1247 Sensor and Controller Student book Chinese version-Part 1
More from AkashaC1
How to Prevent DNS Attacks on MikroTik
How to Prevent DNS Attacks on MikroTik.pdf
How to Prevent DNS Attacks on MikroTik.pdf
AkashaC1
Config RouterOS openVPN
Config RouterOS openVPN.pdf
Config RouterOS openVPN.pdf
AkashaC1
AR Implementation 1 2016.10.20
AR Implementation 1 2016.10.20
AR Implementation 1 2016.10.20
AkashaC1
AR Implementation 2
AR Implementation 2
AR Implementation 2
AkashaC1
Post article to KM with Python
Post article to KM with Python
Post article to KM with Python
AkashaC1
2018 Week 7 Data Analysis
2018 Week 7 Data Analysis
2018 Week 7 Data Analysis
AkashaC1
2018 Week 5 DHT11
2018 Week 5 DHT11
2018 Week 5 DHT11
AkashaC1
2018 Week 4 PIR
2018 Week 4 PIR
2018 Week 4 PIR
AkashaC1
2018 Week 15 Speech Recognition
2018 Week 15 Speech Recognition
2018 Week 15 Speech Recognition
AkashaC1
2018 Week 15 Speaker
2018 Week 15 Speaker
2018 Week 15 Speaker
AkashaC1
2018 Week 14 HC-SR04
2018 Week 14 HC-SR04
2018 Week 14 HC-SR04
AkashaC1
2018 Week 13 Servo Motor
2018 Week 13 Servo Motor
2018 Week 13 Servo Motor
AkashaC1
2018 Week 12 Data Storage and Visualization
2018 Week 12 Data Storage and Visualization
2018 Week 12 Data Storage and Visualization
AkashaC1
2018 Week 11 Bluetooth and Wi-Fi
2018 Week 11 Bluetooth and Wi-Fi
2018 Week 11 Bluetooth and Wi-Fi
AkashaC1
2018 Week 10 Read Time Data Sending
2018 Week 10 Read Time Data Sending
2018 Week 10 Read Time Data Sending
AkashaC1
2018 Week 10 IoT and Robot
2018 Week 10 IoT and Robot
2018 Week 10 IoT and Robot
AkashaC1
2018 Week 8 Relay
2018 Week 8 Relay
2018 Week 8 Relay
AkashaC1
2018 Week 8 IoT and Wearable Devices
2018 Week 8 IoT and Wearable Devices
2018 Week 8 IoT and Wearable Devices
AkashaC1
2018 Week 7 Photoresistor
2018 Week 7 Photoresistor
2018 Week 7 Photoresistor
AkashaC1
2018 Week 16 Computer Vision
2018 Week 16 Computer Vision
2018 Week 16 Computer Vision
AkashaC1
More from AkashaC1
(20)
How to Prevent DNS Attacks on MikroTik.pdf
How to Prevent DNS Attacks on MikroTik.pdf
Config RouterOS openVPN.pdf
Config RouterOS openVPN.pdf
AR Implementation 1 2016.10.20
AR Implementation 1 2016.10.20
AR Implementation 2
AR Implementation 2
Post article to KM with Python
Post article to KM with Python
2018 Week 7 Data Analysis
2018 Week 7 Data Analysis
2018 Week 5 DHT11
2018 Week 5 DHT11
2018 Week 4 PIR
2018 Week 4 PIR
2018 Week 15 Speech Recognition
2018 Week 15 Speech Recognition
2018 Week 15 Speaker
2018 Week 15 Speaker
2018 Week 14 HC-SR04
2018 Week 14 HC-SR04
2018 Week 13 Servo Motor
2018 Week 13 Servo Motor
2018 Week 12 Data Storage and Visualization
2018 Week 12 Data Storage and Visualization
2018 Week 11 Bluetooth and Wi-Fi
2018 Week 11 Bluetooth and Wi-Fi
2018 Week 10 Read Time Data Sending
2018 Week 10 Read Time Data Sending
2018 Week 10 IoT and Robot
2018 Week 10 IoT and Robot
2018 Week 8 Relay
2018 Week 8 Relay
2018 Week 8 IoT and Wearable Devices
2018 Week 8 IoT and Wearable Devices
2018 Week 7 Photoresistor
2018 Week 7 Photoresistor
2018 Week 16 Computer Vision
2018 Week 16 Computer Vision
2017 Week 6 Automatic Mobile Vehicle
1.
自走車 日期:2017/03/30
2.
L298N馬達驅動板 1 2 3 4
5 6 1 2 3 4 5 6 馬達連接端子OUT1、OUT2 數位邏輯輸入電源(正極) 外部電源(正極)驅動馬達 接地(負極) 連接GPIO腳位,控制馬達正反轉 馬達連接端子OUT3、OUT4 2
3.
3
4.
馬達方向控制 馬達A 馬達B 旋轉方式 IN1
IN2 IN3 IN4 往前 1 0 1 0 往後 0 1 0 1 停止 0 0 0 0 右轉 1 0 0 0 左轉 0 0 1 0 馬達A 馬達B 前 後 4
5.
自走車往前 5
6.
物聯網技術重點之一 無線傳輸 6
7.
藍牙-server 7
8.
Serial Bluetooth Terminal 8
9.
無線網路-server 9
10.
TCP UDP Terminal 輸入樹莓派的IP 輸入訊息 10
11.
作業四、基本題:模擬垃圾車 • 目的:練習物聯網的無線傳輸技術 • 無線傳輸方式:無線網路 *左邊一顆LED燈,右邊一顆LED燈,顏色不限。 *無源蜂鳴器只有自走車停止時不發出音樂,其餘自走車狀態需播 放小星星音樂。 •
敘述:智慧型手機透過wifi與樹莓派連線,然後從手機發送五個 指令如下,來控制自走車: • Z代表自走車往前走,左右LED燈不發亮。 • X代表自走車往後走,左右LED燈同時每1秒閃一次。 • C代表自走車往左轉,左邊的LED燈每1秒閃一次。 • V代表自走車往右轉,右邊的LED燈每1秒閃一次。 • S代表自走車停止,無源蜂鳴器停止,左右LED燈都恆亮。 11
12.
作業四、進階題:同步控制自走車 • 目的:練習物聯網的無線傳輸技術 • 無線傳輸方式:無線網路或藍牙 *無線網路或藍牙選其中一種傳輸方式 •
敘述:用智慧型手機透過wifi或藍牙,同時傳送指令給兩台自走 車,兩台自走車接收指令後會同時執行相同的動作,指令 如下: • Z代表自走車往前走。 • X代表自走車往後走。 • C代表自走車往左轉。 • V代表自走車往右轉。 • S代表自走車停止。 12
13.
附註 13
14.
查看MAC位址 14
15.
監聽藍牙連線 15
16.
執行sudo apt-get update 1
2 執行sudo apt-get upgrade 16
17.
執行sudo apt-get install
bluetooth bluez blueman 3 執行sudo nano /etc/systemd/system/dbus-org.bluez.service 4 17
18.
5 6 修改ExecStart=/usr/lib/bluetooth/bluetoothd 為 ExecStart=/usr/lib/bluetooth/bluetoothd
–C 新增ExecStartPost=/usr/bin/sdptool add SP 完成後按Ctrl + X 離開,選Y儲存更新 執行sudo rfcomm watch hci0 開始監聽藍牙連線 18
19.
安裝python藍牙函式庫 19
20.
1 2 執行sudo apt-get install
bluetooth libbluetooth-dev 執行sudo python3 -m pip install pybluez 20
21.
Bluetooth server and
client 21
22.
rfcomm-client.py import bluetooth bd_addr =
"01:23:45:67:89:AB" # here need to modify. use hciconfig to get address port = 1 sock=bluetooth.BluetoothSocket( bluetooth.RFCOMM ) sock.connect((bd_addr, port)) sock.send("hello!!") sock.close() 22
23.
l2cap-server.py import bluetooth server_sock=bluetooth.BluetoothSocket( bluetooth.L2CAP
) port = 0x1001 server_sock.bind(("",port)) server_sock.listen(1) client_sock,address = server_sock.accept() print "Accepted connection from ",address data = client_sock.recv(1024) print "received [%s]" % data client_sock.close() server_sock.close() 23
24.
l2cap-client.py import bluetooth sock=bluetooth.BluetoothSocket(bluetooth.L2CAP) bd_addr =
"01:23:45:67:89:AB" port = 0x1001 sock.connect((bd_addr, port)) sock.send("hello!!") sock.close() 24
25.
無線網路-Client import socket host =
'127.0.0.1' mysock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) addr = (host,5555) mysock.connect(addr) try: msg =b"nhi, This is connection from python network client n" mysock.sendall(msg) except socket.errno as e: print ("This is Socket Error!", e) finally: mysock.close() 25
26.
App下載 • Android系統 • TCP/UDP
Terminal • Serial Bluetooth Terminal • iOS系統 • Telnet Client Terminal 26
Download now