發表文章

目前顯示的是有「MCU」標籤的文章


~~ 記錄自己點點滴滴的學習歷程 ~~





Arduino:SG90伺服馬達實作

圖片
今天快速記錄下 SG90 伺服馬達的 arduino 程式碼。 Tinkercad  的模擬程式範例 PIN 腳位定義: 橘色:控制訊號 紅色:輸入電源 +(3~7.2V) 棕色:共同接地 規格: Weight: 9g Dimension: 23×12.2x29mm Stall torque: 1.8kg/cm(4.8v) Gear type: POM gear set Operating speed: 0.12 sec/60degree(4.8v) Operating voltage: 4.8v~7.2V Temperature range: 0℃_ 55℃ Dead band width: 1us Power Supply: Through External Adapter servo wire length: 25 cm Servo Plug: JR (Fits JR and Futaba) 轉動角度:最大90° 範例程式: 參考  傑森創工 - [Arduino範例] SG90 Servo伺服馬達 參考  Tinkercad 的模擬程式

轉錄:Beaglebone Black 接上網路

If you power down the Beaglebone Black by unplugging its USB cable,  plug it back in (hence rebooting it) and connect via PuTTY and try the ping command again ... >>> ping 8.8.8.8 Network is unreachable … you will find that the network is no longer reachable.  This is because the >>> /sbin/route add default gw 192.168.7.1 command you entered earlier did not survive a reboot.  Just enter it again and the ping command should work. ---------------------------------------------------- >>> ping google.com The thing that translates names into IP addresses is called a nameserver  and we might as well use googles public nameservers to translate names into IP addresses for us.  You can, of course, use your own local nameservers if you wish. Nameservers are set in the /etc/resolv.conf file.  To add a few nameservers just edit the /etc/resolv.conf file (as root) using a command like >>> nano /etc/resolv.conf ↘↘↘↘↘↘↘↘↘↘↘ domain local...