FatfsSDIO – Read and open HTML file from SD card
…file at outside and do not put it inside of any folder in the SD card). Here is a HTML sample for testing, “Web_test.html”. Then insert the MicroSD card into…
…file at outside and do not put it inside of any folder in the SD card). Here is a HTML sample for testing, “Web_test.html”. Then insert the MicroSD card into…
…included to use the class function. NNFaceDetection::getResult Description Get face detection results. Syntax FaceDetectionResult getResult(uint16_t index); std::vector getResult(void); Parameters index: index of specific face detection result to retrieve. Returns If…
…into the SD card. Take note to place the file in the root directory and not in any folder. The HTML sample file can be downloaded at (https://github.com/ambiot/ambpro2_arduino/tree/dev/Ameba_misc/Example_Samples/Web_test.html). Then insert…
…“NNObjectDetection.h” must be included to use the class function. NNObjectDetection::getResult Description Get object detection results. Syntax ObjectDetectionResult getResult(uint16_t index); std::vector getResult(void); Parameters index: index of specific object detection result to…
…to your application Then click “Create App ID” Enter backstage management platform after the instructions. There is an APP ID on the top of the screen, and this ID is…
…to configure (Valid value: 0,1,2) idx: Layer index of OSD. The default value is 0. (Valid value: to 5) Returns NA Example Code LoopPostProcessing (https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/Multimedia/examples/MotionDetection/LoopPostProcessing/LoopPostProcessing.ino) Notes and Warnings “VideoStreamOverlay.h” must…
…“WiFi.h” must be included to use the class function. WiFiClass::BSSID Description Get the current BSSID (Basic Service Set Identifier) associated with the network. Syntax uint8_t* BSSID(uint8_t* bssid); Parameters bssid: an…
…BSSID (Basic Service Set Identifier) associated with the network. Syntax uint8_t* BSSID(uint8_t* bssid); Parameters bssid: an array to store bssid (8-bit unsigned integer). Returns This function returns the uint8_t array…
…configuring a skill that sends requests to this function. */ /* if (event.session.application.applicationId !== “amzn1.echo-sdk-ams.app.[unique-value-here]”) { context.fail(“Invalid Application ID“); } */ if (event.session.new) { onSessionStarted({requestId: event.request.requestId}, event.session); } if (event.request.type…
…Description Get audio classification results. Syntax AudioClassificationResult getResult(uint16_t index); std::vector getResult(void); Parameters index: index of specific audio classification result to retrieve Returns If no index is specified, the function returns…
…rows for motion detection grid resolution. Default value of 18. (Valid value, 18 or 32) col: Number of columns for motion detection grid resolution. Default value of 32. (Valid value:…
…and Warnings “NNFaceRecognition.h” must be included to use the class function. NNFaceDetectionRecognition::getResult Description Get face recognition results. Syntax FaceRecognitionResult getResult(uint16_t index); std::vector getResult(void); Parameters index: index of specific face recognition…
…{ client.subscribe(subscribeTopic[i]); } There are some common topics: “$aws/things/ameba/shadow/update/accepted”, “$aws/things/ameba/shadow/update/rejected”, “$aws/things/ameba/shadow/update/delta”, “$aws/things/ameba/shadow/get/accepted”, “$aws/things/ameba/shadow/get/rejected” Related documentation: http://docs.aws.amazon.com/iot/latest/developerguide/thing-shadow-data-flow.html Then publish current status: sprintf(publishPayload, “{\”state\”:{\”reported\”:{\”led\”:%d}},\”clientToken\”:\”%s\”}”, led_state, clientId); client.publish(publishTopic, publishPayload); Listen to topic and…
…UUID. BLEUUID::BLEUUID Description Create a BLEUUID object from a UUID character string. Syntax BLEUUID(void); BLEUUID(const char* str); BLEUUID(uint8_t* data, uint8_t length); Parameters str: UUID as character string used to create…
…UUID. BLEUUID::BLEUUID Description Create a BLEUUID object from a UUID character string. Syntax BLEUUID(void); BLEUUID(const char* str); BLEUUID(uint8_t* data, uint8_t length); Parameters str: UUID as character string used to create…
…default. For the NFC function, you can use your android phone to scan the NFC antenna to download the NFC APP from google play. (Or you can download from: https://play.google.com/store/apps/details?id=com.realtek.sensortag)…
…high-performance microcontroller of Ameba Pro2, it can effectively process complex scenes and support high-speed computation, thus offering cameras enhanced image quality. Please refer to details. 2023/11/13 Realtek participates in the…
…continuously (Each data is 32 bytes). Please refer to the following article for detailed data format information: https://www.dfrobot.com/wiki/index.php?title=PM2.5_laser_dust_sensor_SKU:SEN0177 AMB21/AMB22 AMB23 BW16 BW16 type C AW-CU488 Thing Plus AMB25 In this…
…for UART connection. Under operating mode, PMS3003 output the data it reads continuously. Each data is of 32 byte, please refer to the following article for detailed data format information:…
…/ 296×128 Resolution / Partial Refresh Arduino Sample Code to get the e-Paper successfully Display: http://www.good-display.com/product/201.html [2] EPD libraries can be obtained from: https://github.com/waveshare/e-Paper [3] Provide the link to how…
…the e-Paper successfully Display: http://www.good-display.com/product/201.html [2] Provide the link to how to generate a QR code on the E-paper module: https://eugeniopace.org/qrcode/arduino/eink/2019/07/01/qrcode-on-arduino.html [3] A simple library for generating QR codes in…
…to get the e-Paper successfully Display: http://www.good-display.com/product/201.html [2] Provide the link to how to generate a QR code on the E-paper module: https://eugeniopace.org/qrcode/arduino/eink/2019/07/01/qrcode-on-arduino.html Solutions IoT SoC / MCU Video SoC…
…http://docs.aws.amazon.com/iot/latest/developerguide/thing-shadow-data-flow.html Then publish current status: sprintf(publishPayload, “{\”state\”:{\”reported\”:{\”led\”:%d}},\”clientToken\”:\”%s\”}”, led_state, clientId); client.publish(publishTopic, publishPayload); Listen to topic and make response: In the callback function, we listen to the 5 subscribed topics and check…
…Good Display GDEH029A1 2.9 Inch / 296×128 Resolution / Partial Refresh Arduino Sample Code to get the e-Paper successfully Display: http://www.good-display.com/product/201.html [2] EPD libraries can be obtained from: https://github.com/waveshare/e-Paper [3]…
…Atza|IwEBIJYyUjyCv8luvwAI content-type: multipart/form-data; boundary=bo [33363] upload audio………………………….. [36861] C<-S HEADERS :status: 200 access-control-allow-origin: * x-amzn-requestid: 0ed21ffffef23a7d-000069fb-00025786-cd4862c89753e4bd-3736a86a-5 content-type: multipart/related;boundary=36697d04-4d4e-4595-b6e6-a390edd0295a;start=metadata.1494256392289;type=”application/json” [37551] json: {“directive”:{“header”:{“namespace”:”Speaker”,”name”:”SetMute”,”messageId”:”664d09e5-d664-4948-bbac-c70e08a1424d”,”dialogRequestId”:”64567a10-0a67-48e6-8d66-4a936508f032″},”payload”:{“mute”:false}}} [37606] json: {“directive”:{“header”:{“namespace”:”SpeechSynthesizer”,”name”:”Speak”,”messageId”:”fe57a3bb-2280-4d88-9345-529e51cc30f2″,”dialogRequestId”:”64567a10-0a67-48e6-8d66-4a936508f032″},”payload”:{“url”:”cid:DeviceTTSRenderer_0ae4a760-fee0-407a-b8d1-e5922c967805_1092807486″,”format”:”AUDIO_MPEG”,”token”:”amzn1.as-ct.v1.Domain:Application:Notifications#ACRI#DeviceTTSRenderer_0ae4a760-fee0-407a-b8d1-e5922c967805″}}} [37718] download mp3……. (3096) Connect to…
…one port pin for communication, and the data input/output is handled in microseconds scale. Ameba uses OneWire library ( http://www.pjrc.com/teensy/td_libs_OneWire.html ) with slight modification to control DS18B20. Please download the…
…COM port number in Device Manager of computer: Step 3. Set up Arduino IDE From version 1.6.5, Arduino IDE supports third-party hardware. Therefore, we can use Arduino IDE to develop…
…up Arduino IDE From version 1.6.5, Arduino IDE supports third-party hardware. Arduino IDE is used to develop applications on BW16, and the Arduino basic examples (refer to the basic example…
…details refer to http://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml . Syntax float computeHeatIndex(bool isFahrenheit); float computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit = true); Parameters temperature: The temperature value in selscted scale. percentHumidity: humidity value in…
…2. Set up Arduino IDE From version 1.6.5, Arduino IDE supports third-party hardware. Arduino IDE is used to develop applications on the board, and the Arduino basic examples (refer to…
…SHirriff’s blog on A Multi-Protocol Infrared Remote Library for the Arduino http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html [3] SB-Projects: IR Remote Control Project https://www.sbprojects.net/knowledge/ir/index.php [4] SONY SIRC Protocol https://www.sbprojects.net/knowledge/ir/sirc.php Solutions IoT SoC / MCU Video…
…details refer to http://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml . Syntax float computeHeatIndex(bool isFahrenheit); float computeHeatIndex(float temperature, float percentHumidity, bool isFahrenheit = true); Parameters temperature: The temperature value in selscted scale. percentHumidity: humidity value in…
…Compute the HeatIndex from the readings (Using both Rothfusz and Steadman’s equations). More details refer to http://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml . Syntax float computeHeatIndex(bool isFahrenheit = true); float computeHeatIndex(float temperature, float percentHumidity, bool…
…Infrared Remote Library for the Arduino http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html [4] SB-Projects: IR Remote Control Project https://www.sbprojects.net/knowledge/ir/index.php Solutions IoT SoC / MCU Video SoC Developers Buy Ameba Boards Standard SDK Ameba ARDUINO AWS…
…URL into “Additional Boards Manager URLs” field: Arduino Ameba package v1.0.0 to v2.0.5 https://github.com/Ameba8195/Arduino/raw/master/release/package_realtek.com_ameba_index.json Arduino Ameba package v2.0.6 and above https://github.com/ambiot/amb1_arduino/raw/master/Arduino_package/package_realtek.com_ameba1_index.json Moreover, if you use IDE version earlier than 1.6.7,…
…Syntax void setUUID(BLEUUID uuid); Parameters uuid: service UUID, expressed as a BLEUUID class object. Returns NA Example Code NA Notes and Warnings “BLEService.h” must be included to use the class…
…Syntax void setUUID(BLEUUID uuid); Parameters uuid: service UUID, expressed as a BLEUUID class object. Returns NA Example Code NA Notes and Warnings “BLEService.h” must be included to use the class…
…Arduino IDE supports third-party hardware. Therefore, we can use Arduino IDE to develop applications on Ameba, and the examples of Arduino can run on Ameba too. Arduino IDE can be…
…detailed explanation. System control parameter PID Controller Ameba quadcopter uses two PID controllers, i.e., Pilot PID controller and Angular Velocity PID controller. Normally, we only need to correct following parameter:…
…2022/05/12 Feature: – Update wlan lib fix wifi hang issues on linux – Update SDK structure avoid the too long file name issue – Fix wlan ssl hang/hardfault issue –…
…fingerprint identification module x 1 Example In this example, a fingerprint identification module is used to store fingerprints and identify them. This module uses SYNOCHIP AS606 chip, which can store…
…libraries we need are https://github.com/Ameba8195/Arduino/blob/master/libraries/AmebaArduCAM.zip To install the library, please refer to the teaching article on the official Arduino website. Add the library in the zip file to Ameba RTL8195:…
…var myFile = e.parameter.myFile; var myFilename = Utilities.formatDate(new Date(), “GMT”, “yyyyMMddHHmmss”)+”-“+e.parameter.myFilename; var myToken = e.parameter.myToken; // Store the file type and Base64 encoded data var contentType = myFile.substring(myFile.indexOf(“:”)+1, myFile.indexOf(“;”)); var…
…PowerSave section for detail description of all API. Solutions IoT SoC / MCU Video SoC Developers Buy Ameba Boards Standard SDK Ameba ARDUINO AWS IoT ExpressLink Amazon FreeRTOS Arm Mbed…
…Reference Please refer to the API Documents PowerSave section for detail description of all API. Solutions IoT SoC / MCU Video SoC Developers Buy Ameba Boards Standard SDK Ameba ARDUINO…
…GPIO Pins Code Reference Please refer to the API Documents PowerSave section for detail description of all API. Solutions IoT SoC / MCU Video SoC Developers Buy Ameba Boards Standard…
…the “Slave Receiver” example in “Examples” -> “Wire” -> “slave_receiver”: Setting up Ameba to be I2C Master Open another Arduino IDE window, make sure to choose Ameba in the IDE:…
…Arduino Uno. Setting up Ameba to be I2C Master Open another Arduino IDE window, make sure to choose Ameba in the IDE: “Tools” -> “Board” -> “Arduino Ameba” Then open…
…type. (DHT11, DHT22 and DHT33) Code Reference Please refer to the API Documents PowerSave section for detail description of all API. Solutions IoT SoC / MCU Video SoC Developers Buy…
…like the classic Python IDLE but running on microcontroller. To use REPL, simply open any serial terminal software (most common ones are teraterm, putty etc.) on your PC and connect…
…Gamepad BLE – HID Keyboard BLE – HID Mouse BLE – V7RC Car IPv6 – Set up IPv6 Server/Client over TCP IPv6 – Set up IPv6 Server/Client over UDP NTP…
…classic Python IDLE but running on microcontroller. To use REPL, simply open any serial terminal software (most common ones are teraterm, putty etc.) on your PC and connect to your…
…HID Keyboard BLE – HID Mouse BLE – PWM over BLE UART BLE – BLE Scan BLE – WiFi Configuration Service BLE – Door Unlock Over BLE UART BLE -…
…Gamepad BLE – HID Keyboard BLE – HID Mouse BLE – V7RC Car IPv6 – Set up IPv6 Server/Client over TCP IPv6 – Set up IPv6 Server/Client over UDP NTP…
…devices. First, open the example in “File” – “Examples” – “WiFi” – “ConcurrentMode”. In the sample code, fill in your SSID, PASSWORD, AP SSID, AP PASSWORD and CHANNEL. If you…
…on the most left. Code Reference [1] We use Good Display GDEH029A1 2.9 Inch / 296×128 Resolution / Partial Refresh Arduino Sample Code to get the e-Paper successfully Display: http://www.good-display.com/product/201.html…
…→ “ConcurrentMode” . In the sample code, fill in your SSID, PASSWORD, AP SSID, AP PASSWORD and CHANNEL. If you prefer to enter all the information in the Serial monitor…
…as Server to Control Motors USB – CDC Serial Port USB – HID Gamepad USB – HID Keyboard USB – HID Mouse WS2812B – Basics WS2812B – Patterns OTA -…
…Gamepad BLE – HID Keyboard BLE – HID Mouse BLE – V7RC Car IPv6 – Set up IPv6 Server/Client over TCP IPv6 – Set up IPv6 Server/Client over UDP NTP…
…mode. import socket from wireless import WLAN wifi = WLAN(mode = WLAN.STA) wifi.connect(ssid = “YourWiFiSSID”, pswd = “YourPassword”) # change the ssid and pswd to yours def http_get(url): _, _,…
…Note: Not all sets of peripherals shown on the picture/table below are available on MicroPython. (https://www.amebaiot.com/wp-content/uploads/2020/05/get-start-3.html) GPIO pin GPIO INT ADC PWM UART SPI I2C PB2 ✓ A5 SERIAL2_RX (b)*…
…to use the class function. IRDevice::end Description Stop the IR device operations and free up resources allocated to the IR transmitting and receiving pins. Syntax void end(void); Parameters NA Returns…
…Download Modbus tool There are a number of tools for Modbus. Here, we use a free command line tool called “modpoll”. Related documents can be found here: http://www.modbusdriver.com/modpoll.html Unzip the…
…board: Code Reference [1] We use Good Display GDEH029A1 2.9 Inch / 296×128 Resolution / Partial Refresh Arduino Sample Code to get the e-Paper successfully Display: http://www.good-display.com/product/201.html Solutions IoT SoC…
…3.4b_patch_sd_storage_(v04) Demo set up The Teensy audio shield uses SGTL5000 codec. It supports stereo input and output. Official document: https://www.pjrc.com/store/teensy3_audio.html 1. Connect Ameba with SGTL5000 SGTL5000 and Ameba is connected…
…the device. Preparation Ameba x 1 Android phonex 1 Patch file for Airkiss: 3.4b3_patch_aikiss2.0(v02) Download APP Weixin provides AirKiss debug tool, currently for Android only. Download and install from: http://iot.weixin.qq.com/wiki/document-0_6.html…
…address represented as an integer array BLEAddr::BLEAddr Description Constructs a BLEAddr object. Syntax BLEAddr(void); BLEAddr(uint8_t (&addr)[6]); BLEAddr(const char * str); Parameters addr: An array of 6 bytes containing the desired…
…related issues, refer to https://forum.amebaiot.com/t/ubuntu-linux-environment/2259. For any macOS related issues, refer to https://forum.amebaiot.com/t/macos-environment/2260. Step 2. Set up Arduino IDE From version 1.6.5, Arduino IDE supports third-party hardware. Arduino IDE is…
…password and key index (optional). Compile and upload the code from the Arduino IDE to Ameba and press the reset button when the upload is complete. Ameba should connect to…
…• Modify the ssid, password and key index (optional). Compile and upload the code from the Arduino IDE to Ameba and press the reset button when the upload is complete….
…the ssid, password and key index (optional). Compile and upload the code from the Arduino IDE to Ameba and press the reset button when the upload is complete. Ameba should…
…IDE and you can see the information retrieved from the website. Code Reference Use WiFi.begin() to establish WiFi connection: https://www.arduino.cc/en/Reference/WiFiBegin To get the information of a WiFi connection: Use WiFi.SSID()…
…Side • Open the example in “File” -> “Examples” -> “WiFi” -> “UDPCalculation” -> “ReceiveDelay”. • Modify the ssid, password and key index (optional). Compile and upload the code from…
…setting. Ameba Side • Open the example in “File” -> “Examples” -> “WiFi” -> “UDPCalculation” -> “ReceiveTimeout”. • Modify the ssid, password and key index (optional). Compile and upload the…
…• Modify the ssid, password and key index (optional). Compile and upload the code from the Arduino IDE to Ameba and press the reset button when the upload is complete….
…SSID to be connected, “key” to the hexadecimal password, “keyIndex” to your key index number. If you prefer to enter your SSID & password in the Serial monitor while the…
…Google is shown in the Arduino serial monitor. Code Reference https://www.arduino.cc/en/Reference/WiFiBegin To get the information of a WiFi connection: Use WiFi.SSID() to get SSID of the current connected network. https://www.arduino.cc/en/Reference/WiFiSSID…
…establish WiFi connection. https://www.arduino.cc/en/Reference/WiFiBegin To get the information of a WiFi connection: Use WiFi.SSID() to get SSID of the current connected network. https://www.arduino.cc/en/Reference/WiFiSSID Use WiFi.RSSI() to get the signal strength…
…task: OBJECT_DETECTION, FACE_DETECTION, FACE_RECOGNITION Valid Object Detection model: YOLOv3 model: DEFAULT_YOLOV3TINY, CUSTOMIZED_YOLOV3TINY YOLOv4 model: DEFAULT_YOLOV4TINY, CUSTOMIZED_YOLOV4TINY YOLOv7 model: DEFAULT_YOLOV7TINY, CUSTOMIZED_YOLOV7TINY Valid Face Detection model: DEFAULT_SCRFD, CUSTOMIZED_SCRFD Valid Face Recognition model:…
…(ssid, password, key index) required to connect to your WiFi network. Upload the code and press the reset button on Ameba. After connecting to WiFi, Ameba starts to run as…
…connection: https://www.arduino.cc/en/Reference/WiFiBegin To get the information of a WiFi connection: Use WiFi.SSID() to get SSID of the current connected network. https://www.arduino.cc/en/Reference/WiFiSSID Use WiFi.RSSI() to get the signal strength of the…
…OS (Ubuntu) related issues, refer to https://forum.amebaiot.com/t/ubuntu-linux-environment/2259. For any macOS related issues, refer to https://forum.amebaiot.com/t/macos-environment/2260. Step 2. Set up Arduino IDE From version 1.6.5, Arduino IDE supports third-party hardware. Arduino…
…DEFAULT_YOLOV3TINY, CUSTOMIZED_YOLOV3TINY YOLOv4 model: DEFAULT_YOLOV4TINY, CUSTOMIZED_YOLOV4TINY YOLOv7 model: DEFAULT_YOLOV7TINY, CUSTOMIZED_YOLOV7TINY Valid Face Detection model: DEFAULT_SCRFD, CUSTOMIZED_SCRFD Valid Face Recognition model: DEFAULT_MOBILEFACENET, CUSTOMIZED_MOBILEFACENET Valid Audio Classification model: DEFAULT_YAMNET, CUSTOMIZED_YAMNET Choose the…
…Syntax uint64_t read_us(uint32_t timerid); Parameters timerid: The timer to be read. (There are 5 valid GTimer with timer id 0~4) Returns This function returns “0” if the timerid is invalid,…
…following two models of ILI9341 TFT LCD with SPI interface: Adafruit 2.8″ TFT LCD (with touch screen) https://www.adafruit.com/products/1651 https://learn.adafruit.com/adafruit-2-8-tft-touch-shield-v2?view=all QVGA 2.2″ TFT LCD http://www.elecfreaks.com/wiki/index.php?title=2.2S%22_TFT_LCD:_TFT01-2.2S Common pins in ILI9341 TFT LCD…
…-> “Examples” -> “AmebaWiFi” -> “ConnectWithWEP” In the sample code, modify “SSID” to the SSID to be connected, “key” to the hexadecimal password, “keyIndex” to your key index number. Next,…
…Syntax int begin(char* ssid); int begin(char* ssid, uint8_t key_idx, const char* key); int begin(char* ssid, const char *passphrase); Parameters ssid: Pointer to the SSID string key_idx: The key index to…
…address represented as an integer array BLEAddr::BLEAddr Description Constructs a BLEAddr object. Syntax BLEAddr(void); BLEAddr(uint8_t (&addr)[6]); BLEAddr(const char * str); Parameters addr: An array of 6 bytes containing the desired…
…must be included to use the class function. GTimerClass::stop Description Stop a specific timer. Syntax void stop(uint32_t timerid); Parameters timerid: Stop the timer with the selected timer id. timerid range:…
…Minimum valid value from 0. Valid value must be or greater than 0. duration_m: set the duration in minutes. Minimum valid value from 0. Valid value must be or greater…
…Use WiFi.SSID() to get SSID of the current connected network. https://www.arduino.cc/en/Reference/WiFiSSID Use WiFi.RSSI() to get the signal strength of the connection. https://www.arduino.cc/en/Reference/WiFiRSSI Use WiFi.localIP() to get the IP address of…
…example in “File” -> “Examples” -> “WiFi” -> “ConnectWithWiFi” -> “ConnectWithWEP” In the sample code, modify “ssid” to the SSID to be connected, “key” to the hexadecimal password, “keyIndex” to…
…please go to https://ftdichip.com/drivers/ for USB driver. Check the COM port number in Device Manager of computer: Step 3. Set up Arduino IDE From version 1.6.5, Arduino IDE supports third-party…
…IDE From version 1.6.5, Arduino IDE supports third-party hardware. Therefore, we can use Arduino IDE to develop applications, and the Arduino basic examples can run on AMB23 too. Refer to…
…included to use the class function. WS2812B::begin Description Check for correct SPI MOSI pin settings and prepare to drive the WS2812B. Syntax void begin(void); Parameters NA Returns NA Example Code…
…Arduino IDE From version 1.6.5, Arduino IDE supports third-party hardware. Arduino IDE is used to develop applications on the board, and the Arduino basic examples. Arduino IDE can be downloaded…
…LED as blue ledstrip.setPixelColor(1,10,10,10); light up No.1 LED as white ledstrip.setPixelColor(3,10,0,0); light up No.3 LED as red ledstrip.setPixelColor(8,10,0,0); light up No.8 LED as red Use setPixelColor(index, Red, Green, Blue) to…