Arduino 常數 const /正負變數 unsigned / 陣列 [] / 記憶體限制

關於 常數 const /正負變數 unsigned / 陣列 [] / 記憶體限制http://yhhuang1966.blogspot.tw/2015/09/arduino_14.html 關於記憶體二三事 (陣列大小) http://yehnan.blogspot.tw/2013/08/arduino.html 儲存檔案到 Flash https://www.arduino.cc/reference/en/language/variables/utilities/progmem/ [Arduino] 淺談記憶體2 -- PROGRAM (讀) http://pizgchen.blogspot.tw/2017/03/arduino-2-program.html Arduino EEPROM write and read array?(讀寫)https://stackoverflow.com/questions/15474272/arduino-eeprom-write-and-read- ARDUINO 記憶體不足不用怕,一個函數打天下 (讀取 RAM 大小) https://vmaker.tw/archives/13258 ESP8266 Flash Handling http://www.packom.org/esp8266/16mb/flash/eeprom/2016/10/14/esp8266-16mbyte-flash_handling.html SP8266 Internal EEPROM Programming http://www.packom.org/esp8266/16mb/flash/eeprom/2016/10/14/esp8266-16mbyte-flash_handling.html  

Advertisements

學習 Arduino Clock 應用

  【也是冷知識】如何加快analogRead速度提高采樣率Sampling Rate?http://www.arduino.cn/thread-12569-1-1.html 處理 Arduino Clock 溢位 http://magicjackting.pixnet.net/blog/post/152414140-timer-counter-%E6%BA%A2%E4%BD%8D%E4%BA%86%E6%80%8E%E9%BA%BC%E8%BE%A6%3F 了解 Arduino Flash & Clock Specification https://store.arduino.cc/usa/arduino-uno-rev3 analogRead() http://www.86duino.com/?p=1635&lang=TW        

Arduino DAC study

在看了 Matlib 的相關文章後,似乎 Matlib 都是用來在 PC 端控制 Arduino, 這個和我期望的 Arduino 達到可以 DAC 的期望不相符。 參考文章:用Matlab與Arduino的序列阜溝通 http://hklifenote.blogspot.tw/2015/03/matlabarduino.html?m=1 於是我改為傾向自己去了解時脈作業方式,試試可否自己處理 PWN read & Digital Write。 參考文章:mBlock & Arduino(4)利用 PWM 模擬類比訊號 https://openhome.cc/Gossip/CodeData/mBlockArduino/mBlockArduino4.html 播放人聲,只需要 MCU! https://medium.com/maker-cup/%E9%8C%84%E6%94%BE%E4%BA%BA%E8%81%B2-%E5%8F%AA%E9%9C%80%E8%A6%81-mcu-51a42e462b13  

THINGSPEAK humidity/temperature log

// Example testing sketch for various DHT humidity/temperature sensors // Written by ladyada, public domain #include "DHT.h" // include WIFI Library #include <ESP8266WiFi.h> #include <WiFiClient.h> WiFiClient client; #define _baudrate 9600 #define DHTPIN D4 // what digital pin we're connected to // Define the ID and password of your Wi-Fi network const char* ssid = "XXXXXX_GUEST"; … Continue reading THINGSPEAK humidity/temperature log

PIR Slack 通知 Arduino nodemcu PIR Sensor Test Coding

#include<Wire.h> int16_t Dice; // include WIFI Library #include <ESP8266WiFi.h> #include <WiFiClient.h> WiFiClient client; #define _baudrate   9600 #define PIRSensor D2 #define ledPin D0 int sensorValue = 0;         // 紅外線動作感測器訊號變數 // Define the ID and password of your Wi-Fi network const char* ssid = "XXXXXX_GUEST"; const char* password = "XXXXXXXX"; // Slack … Continue reading PIR Slack 通知 Arduino nodemcu PIR Sensor Test Coding

前方5聲納模組資料回傳 Arduino MeUltrasonicSensor V1.2

#include<MeShield.h> #include <SoftwareSerial.h> //MeSerial mySerial(PORT_5); int i=0,j=0,virtualPort,sonicArray,portSort,triggerPort; float listArray[5][5],setDistance=10,dataSort; int identifyPort[5][5]; boolean  checkBoolean=false; void setup() {   //initialize serial communications at 9600bps   Serial.begin(9600); //  mySerial.begin(9600); } void loop() {   // Use to check readArray return true or false volue   // Serial.println(checkArray()); delay(1000);       // the minimal measureinterval is 100 milliseconds … Continue reading 前方5聲納模組資料回傳 Arduino MeUltrasonicSensor V1.2

ADC / PCM 筆記

https://medium.com/maker-cup/%E9%8C%84%E6%94%BE%E4%BA%BA%E8%81%B2-%E5%8F%AA%E9%9C%80%E8%A6%81-mcu-51a42e462b13 播放人聲,只需要 MCU! 不需要外掛任何模組或錄音IC https://medium.com/maker-cup/%E9%8C%84%E6%94%BE%E4%BA%BA%E8%81%B2-%E5%8F%AA%E9%9C%80%E8%A6%81-mcu-51a42e462b13 Record a PCM audio via ADC http://www.instructables.com/id/Arduino-Audio-Input/ Playback PCM data via Arduino https://playground.arduino.cc/Code/PCMAudio https://github.com/damellis/PCM http://playground.arduino.cc/Code/PCMAudio Some project with Record and Playback into SD card http://www.instructables.com/id/Arduino-Mega-Audio-File-logging/ http://www.instructables.com/id/Arduino-playing-wav-files/ SPI RAM 128KB can use with Arduino to save more data in RAM at fastest way http://ceptimus.co.uk/?p=166 https://github.com/ennui2342/arduino-sram https://thearduinoandme.wordpress.com/tutorials/external-sram-23lc1024/ https://www.pjrc.com/teensy/23LC1024.pdf