Search Results

FaceDetection Class

…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…

Read More »

ObjectDetection Class

…“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…

Read More »

VideoStreamOverlay Class

…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…

Read More »

WiFiClass Class

…“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…

Read More »

WiFiClass Class

…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…

Read More »

Amazon Alexa

…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…

Read More »

Audio Classification Class

…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…

Read More »

MotionDetection Class

…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:…

Read More »

FaceDetectionRecognition Class

…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…

Read More »

Use Amazon AWS IoT Shadow Service

…{ 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…

Read More »

BLEUUID Class

…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…

Read More »

BLEUUID Class

…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…

Read More »

News

…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…

Read More »

UART – PM2.5 Concentration in The Air

…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…

Read More »

Detect PM2.5 concentration in the air

…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:…

Read More »

E-paper – Display User-generated QR code

…/ 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…

Read More »

E-Paper – Display User-Generated QR Code

…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…

Read More »

E-Paper – Display Images

…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…

Read More »

MQTT – Use Amazon AWS IoT Shadow Service

…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…

Read More »

E-Paper – Display Images

…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]…

Read More »

Amazon Service

…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…

Read More »

GPIO – Using DS18B20 thermometer

…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…

Read More »

DHT Class

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…

Read More »

IR – Transmit IR Sony Data

…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…

Read More »

DHT Class

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…

Read More »

DHT Class

…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…

Read More »

IR – Transmit IR NEC Raw Data and Decode

…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…

Read More »

Ameba ARDUINO: Getting Started with RTL8195

…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,…

Read More »

BLEService 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…

Read More »

BLEService 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…

Read More »

Realtek Quadcopter

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:…

Read More »

Ameba ARDUINO: Release History

…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 –…

Read More »

Using Fingerprint Identification Module

…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…

Read More »

Multimedia – Motion Detection Google Line Notify

…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…

Read More »

Power Save – Deep Sleep Mode

…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…

Read More »

Power Save – Tickless Mode

…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…

Read More »

Ameba Arduino: WiFi – Concurrent Mode

…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…

Read More »

E-Paper – Display Text

…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

Read More »

WiFi – Concurrent Mode

…→ “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…

Read More »

Ameba MicroPython: Getting Started with RTL8722

…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)*…

Read More »

IRDevice Class

…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…

Read More »

Using modbus TCP communication protocol

…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…

Read More »

E-Paper – Display Text

…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…

Read More »

Standard SDK: [RTL8195AM] I2S – Ameba I2S Audio Demo

…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…

Read More »

BLEAddr Class

…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…

Read More »

Ameba ARDUINO: Getting Started with AMB25

…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…

Read More »

HTTP – Retrieve HTTP websites from the Internet

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()…

Read More »

WiFi – Calculate UDP Receive Delay

…Side • Open the example in “File” -> “Examples” -> “WiFi” -> “UDPCalculation” -> “ReceiveDelay”. • Modify the ssid, password and key index (optional). Compile and upload the code from…

Read More »

WiFi – Calculate UDP Receive Timeout

…setting. Ameba Side • Open the example in “File” -> “Examples” -> “WiFi” -> “UDPCalculation” -> “ReceiveTimeout”. • Modify the ssid, password and key index (optional). Compile and upload the…

Read More »

WiFi – Connect to WiFi networks

…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…

Read More »

WiFi – Simple Http Request to Retrieve Webs

…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

Read More »

WiFi – Simple Http Server to Receive Data

…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…

Read More »

Neural Nework – Object Detection

…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:…

Read More »

HTTP – Retrieve HTTP websites from the Internet​

…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…

Read More »

Ameba ARDUINO: Getting Started with AMB26

…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…

Read More »

Neural Network – Audio Classification

…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…

Read More »

GTimerClass Class

…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,

Read More »

SPI – Print image and text on LCD screen

…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…

Read More »

Connect to WiFi

…-> “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,…

Read More »

WiFiClass Class

…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…

Read More »

BLEAddr Class

…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…

Read More »

GTimerClass Class

…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:…

Read More »

PMUClass Class

…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…

Read More »

WiFi – Connect to WiFi networks

…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…

Read More »

WS2812B Class

…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…

Read More »

Use WS2812B 4×4 RGB LED

…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…

Read More »
Please confirm that QQ communication software is installed