跳到主要內容

發表文章

OLED using I2C and SPI, etc

nanpy?

ConfigurableFirmata and johnny-five

Prelude: Rasperry Pi is a very powerful and popular ARM board, and can be installed with Raspian ( Debian 8 ) Jessie very easily with NOOBS. However the node.js version included is version 0.10.x , which is rather old, and I think the main reason is be compatible with node-red. This will cause trouble if you want to install johnny-five in it. based on excellent tutorial on pubnub , npmjs and jwaldron github,  I list out the workflow on how to do it. on Arduino: install ConfigurableFirmata ( see PubNub tutorial ) is pretty straightforward on Raspberry Pi: install node.js from nodejs.org curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs  npm (node package manager ) is already installed check version of npm: Ubuntu and Debian Install Node.js >= 0.10.x               sudo apt-get install nodejs Install the nodejs-legacy package     ...

廣東觀星地點

广州从化阿婆六村. 最近太多人去, 加了住宿的地方有晚上戶外活動, 營火 唱歌等, 多了光害... 广东省惠州市龙门南昆山 阳山县北部的秤架镇石坑崆(海拔1902m) 24°55'38"N,112°59'29"E sohu foshantravel  goodread  

惠州龍門縣 light pollution map

so radiance is around 0.32(blue) to black( if the GPS co-ordinates were a bit off) from baidu map, it is probably a bit south , 鹿湖凹, or close to it  114.15077 E  23.54125 N on lightpollutionmapinfo mapbar  reference in hkastroforum another nearby place called 沙徑農場

Pegasus Cepheus and Cassiopeia

pictured in Clear Water Bay park on 26 Sep 2017 M31 is just visible at bottom of the picture All in all, a location far away from city sky glow is far more important than any other factors

using Raspberry Pi to control Arduino using pyFirmata

Setting up your Arduino for Firmata Firmata control of the Arduino requires loading an Arduino with the special Firmata sketch. You can download the Arduino software from the Arduino website. After opening the Arduino IDE, follow these steps to install Firmata on your Arduino: Click File->Examples->Firmata->StandardFirmata From the Tools->Board menu, select the type of Arduino you are using. From the Tools->Serial Port menu, choose the USB port to which your Arduino is connected. Click the upload button (it looks like a right arrow, just next to the checkmark) and wait for your sketch to upload. A message in the bottom black windowwill indicate success or failure Once the Firmata sketch is loaded on your Arduino, you can test it out with the Firmata Test Program. Controlling your Arduino from Python Next, your Raspberry Pi must be setup with the python firmata libraries. Run the following commands: sudo apt-get install python-pip python-serial sudo ...

how to interface DS2431 in arduino

some good introduction from instructables: Bus Pirate 3EEPROM Explorer Board steps are: 1. find the device address 2. write 8 bytes to scratchpad 3. verify from scratchpad and get the authorization code 4. write scratchpad to EEPROM 5. verify scratchpad write 6. read back the values FredBlais has written a working example here and the Onwire.h library is located in PaulStoffregen's github references: sheepdogguides PJRC http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1271724996/3#3