# Peripherals

**URL:** https://forum.amebaiot.com/c/arduino/peripherals/123.md?page=2

[Latest](https://forum.amebaiot.com/latest.md) · [Categories](https://forum.amebaiot.com/categories.md) · [Tags](https://forum.amebaiot.com/tags.md)

**Page:** 3

---

## [AMB82 write to SD card](https://forum.amebaiot.com/t/amb82-write-to-sd-card/3237)

<div class="topic-metadata">

**Author:** [@khalil](https://forum.amebaiot.com/u/khalil)\
**Replies:** 14\
**Last updated:** [August 26, 2024, 6:15pm UTC](https://forum.amebaiot.com/t/amb82-write-to-sd-card/3237 "2024-08-26T18:15:40Z")

</div>

Hi, I’m using the example as it is but unfortunately nothing written on SD image, videos and audio knowing that i already make the SD FAT32 always have the below message in serial monitor: \[VID Wrn\] CH 0 MMF ENC Que…

---

## [RTL8720DN to MicroSD Card Reader](https://forum.amebaiot.com/t/rtl8720dn-to-microsd-card-reader/3209)

<div class="topic-metadata">

**Author:** [@Trevor\_Durn](https://forum.amebaiot.com/u/Trevor_Durn)\
**Replies:** 4\
**Last updated:** [August 19, 2024, 3:32am UTC](https://forum.amebaiot.com/t/rtl8720dn-to-microsd-card-reader/3209 "2024-08-19T03:32:33Z")

</div>

Hello! I seem to be having trouble utilizing the \<SPI.h\> library for my RTL8720DN. I’m creating an air sensor and continue to get various issues with my code. Here is my code: #include \<WiFi.h\> #include \<NTPClient.h\> #…

---

## [Motor Control - DRV8833 or TB6612](https://forum.amebaiot.com/t/motor-control-drv8833-or-tb6612/2966)

<div class="topic-metadata">

**Author:** [@rkuo2000](https://forum.amebaiot.com/u/rkuo2000)\
**Replies:** 3\
**Last updated:** [August 8, 2024, 12:12am UTC](https://forum.amebaiot.com/t/motor-control-drv8833-or-tb6612/2966 "2024-08-08T00:12:48Z")

</div>

Do AMB82-mini have motor control library for using motor driver IC, such as DRV8833 , TB6612 ?

---

## [Your example VL53L1X doesnt work](https://forum.amebaiot.com/t/your-example-vl53l1x-doesnt-work/3211)

<div class="topic-metadata">

**Author:** [@nsmith1024](https://forum.amebaiot.com/u/nsmith1024)\
**Replies:** 3\
**Last updated:** [August 5, 2024, 8:04am UTC](https://forum.amebaiot.com/t/your-example-vl53l1x-doesnt-work/3211 "2024-08-05T08:04:45Z")

</div>

I tried your example for VL53L1X doesnt work. I connect it to I2C port at pins 12 and 13, but the initialization always failed.

---

## [GTimer disable](https://forum.amebaiot.com/t/gtimer-disable/3118)

<div class="topic-metadata">

**Author:** [@nsmith1024](https://forum.amebaiot.com/u/nsmith1024)\
**Replies:** 1\
**Last updated:** [July 24, 2024, 4:08am UTC](https://forum.amebaiot.com/t/gtimer-disable/3118 "2024-07-24T04:08:27Z")

</div>

Hello, Im using Gtimer like this below to call my tick function every 250 milliseconds GTimer.begin(0, (1 \* 1000 \* 200), tick, true, 0); However the tick function access some variables used by the main program, so i w…

---

## [The program size issue regarding the standby mode of amb82](https://forum.amebaiot.com/t/the-program-size-issue-regarding-the-standby-mode-of-amb82/2570)

<div class="topic-metadata">

**Author:** [@ren\_yucheng](https://forum.amebaiot.com/u/ren_yucheng)\
**Replies:** 16\
**Last updated:** [July 24, 2024, 1:23am UTC](https://forum.amebaiot.com/t/the-program-size-issue-regarding-the-standby-mode-of-amb82/2570 "2024-07-24T01:23:20Z")

</div>

Friends, have you encountered a compilation failure issue when merging standard standby mode into your own application code? My own application code takes up approximately 59% of the program’s storage space. When I compi…

---

## [Crash when tone() called during GTimer interrupt](https://forum.amebaiot.com/t/crash-when-tone-called-during-gtimer-interrupt/3150)

<div class="topic-metadata">

**Author:** [@nsmith1024](https://forum.amebaiot.com/u/nsmith1024)\
**Replies:** 1\
**Last updated:** [July 22, 2024, 2:03am UTC](https://forum.amebaiot.com/t/crash-when-tone-called-during-gtimer-interrupt/3150 "2024-07-22T02:03:01Z")

</div>

Hello, The whole system crashes if a create a timer GTimer.begin(0, (1 \* 1000 \* 200), tick, false, 0); When the timer times out it calls tick(…) as shown above If i call tone(pin, freq) inside that tick() functio…

---

## [AMB82-Arduino SDK , Is there any API or example for reading and writing data in flash memory?](https://forum.amebaiot.com/t/amb82-arduino-sdk-is-there-any-api-or-example-for-reading-and-writing-data-in-flash-memory/2511)

<div class="topic-metadata">

**Author:** [@time4china](https://forum.amebaiot.com/u/time4china)\
**Replies:** 5\
**Last updated:** [July 15, 2024, 5:35am UTC](https://forum.amebaiot.com/t/amb82-arduino-sdk-is-there-any-api-or-example-for-reading-and-writing-data-in-flash-memory/2511 "2024-07-15T05:35:49Z")

</div>

In ABM82 ref example, I can only find File Syem App with SD card. In AmebaD ref example, can find ’ Store data in Flash EEPROM’ example. Doesn’t AMB82-MINI Arduino support write-and-read functions in eeprom? if suppor…

---

## [AMB82-MINI如何使用 Flash Rom](https://forum.amebaiot.com/t/amb82-mini-flash-rom/2368)

<div class="topic-metadata">

**Author:** [@aramisliu](https://forum.amebaiot.com/u/aramisliu)\
**Replies:** 5\
**Last updated:** [July 10, 2024, 9:27am UTC](https://forum.amebaiot.com/t/amb82-mini-flash-rom/2368 "2024-07-10T09:27:24Z")

</div>

您好 AMB82-MINI 有 16M 的 flash，請問是否可以用來儲存資料。若可以的話哪邊有 Example? 若無法使用的話，除了 SD 卡是否還有其他可以儲存的裝置?

---

## [Need Some Advise with Integrating Sensor Data with Ameba IoT](https://forum.amebaiot.com/t/need-some-advise-with-integrating-sensor-data-with-ameba-iot/3065)

<div class="topic-metadata">

**Author:** [@elijaa](https://forum.amebaiot.com/u/elijaa)\
**Replies:** 0\
**Last updated:** [June 27, 2024, 9:36am UTC](https://forum.amebaiot.com/t/need-some-advise-with-integrating-sensor-data-with-ameba-iot/3065 "2024-06-27T09:36:57Z")

</div>

Hello there, I am working on a project where I need to integrate sensor data with an Ameba IoT board; and I am hoping to get some advice from this knowledgeable community. I m using an Ameba RTL8722DM board to collect …

---

## [RTL8720DN(BW16) Deep Sleep Consume A lot of Power](https://forum.amebaiot.com/t/rtl8720dn-bw16-deep-sleep-consume-a-lot-of-power/3064)

<div class="topic-metadata">

**Author:** [@zeeshan104](https://forum.amebaiot.com/u/zeeshan104)\
**Replies:** 0\
**Last updated:** [June 27, 2024, 5:41am UTC](https://forum.amebaiot.com/t/rtl8720dn-bw16-deep-sleep-consume-a-lot-of-power/3064 "2024-06-27T05:41:13Z")

</div>

Hello, I am using RTL8720DN (BW16) barebone module to test deep sleep. In deep sleep mode it consume a lot of power. In the application note of rtl8720dn, 7~8uA current consume is mentioned in deep sleep. What i have to …

---

## [Micro SD Card file download](https://forum.amebaiot.com/t/micro-sd-card-file-download/3040)

<div class="topic-metadata">

**Author:** [@alvare8](https://forum.amebaiot.com/u/alvare8)\
**Replies:** 5\
**Last updated:** [June 20, 2024, 1:34am UTC](https://forum.amebaiot.com/t/micro-sd-card-file-download/3040 "2024-06-20T01:34:20Z")

</div>

Hello, Is there a way where I can connect the amb82 mini to wifi and connect my computer to the IP address to download videos off the integrated micro SD card onto my computer? I used the RecieveData example under the W…

---

## [Load model from SD card Amb82 mini](https://forum.amebaiot.com/t/load-model-from-sd-card-amb82-mini/2857)

<div class="topic-metadata">

**Author:** [@Andrey\_M](https://forum.amebaiot.com/u/Andrey_M)\
**Replies:** 10\
**Last updated:** [June 13, 2024, 9:01pm UTC](https://forum.amebaiot.com/t/load-model-from-sd-card-amb82-mini/2857 "2024-06-13T21:01:06Z")

</div>

Hello! As per the instructions on the official website, I cannot download the model for detecting objects from the SD card, since there is no menu item NN Model Load From “SD Card” in Arduino Ide 2.3.2. Tell me, please!

---

## [serial.readBytes() returns wrong number of bytes](https://forum.amebaiot.com/t/serial-readbytes-returns-wrong-number-of-bytes/3025)

<div class="topic-metadata">

**Author:** [@mvdw](https://forum.amebaiot.com/u/mvdw)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 7:08pm UTC](https://forum.amebaiot.com/t/serial-readbytes-returns-wrong-number-of-bytes/3025 "2024-06-11T19:08:18Z")

</div>

I have a serial receive module, using freeRTOS on arduino. When I receive my data packet, it’s exactly half the size I was expecting. Here’s my code: void SerialReceiveTask(void\* pvParameters){ (void) pvParameters;…

---

## [AMB82 MINI Read QR Code and Datamatrix while record a video](https://forum.amebaiot.com/t/amb82-mini-read-qr-code-and-datamatrix-while-record-a-video/2625)

<div class="topic-metadata">

**Author:** [@Ivan](https://forum.amebaiot.com/u/Ivan)\
**Replies:** 35\
**Last updated:** [May 11, 2024, 2:10am UTC](https://forum.amebaiot.com/t/amb82-mini-read-qr-code-and-datamatrix-while-record-a-video/2625 "2024-05-11T02:10:58Z")

</div>

Hi everyone, I have to make an application for recording a video at 720p 30fps and at the same time scan a possible QR Code or Datamatrix that is positioned in front of the camera, is it possible to do this with AMB82? …

---

## [在AMEBA\_AMB21上测试UART，结果异常](https://forum.amebaiot.com/t/ameba-amb21-uart/2908)

<div class="topic-metadata">

**Author:** [@kean0048](https://forum.amebaiot.com/u/kean0048)\
**Replies:** 1\
**Last updated:** [May 4, 2024, 12:50pm UTC](https://forum.amebaiot.com/t/ameba-amb21-uart/2908 "2024-05-04T12:50:25Z")

</div>

from machine import UART uart = UART(tx=“PA\_21”, rx= “PA\_22”) uart = UART(tx=“PA\_26”, rx= “PA\_25”) uart = UART(tx=“PB\_1”, rx= “PB\_2”) uart.write(“123”) uart.read # read up to 5 bytes 在几乎使用默认代码的情况下，是使用以上测试代码测试串口输出…

---

## ['SD' was not declared in this scope; did you mean 'SI'?](https://forum.amebaiot.com/t/sd-was-not-declared-in-this-scope-did-you-mean-si/2870)

<div class="topic-metadata">

**Author:** [@Andrey\_M](https://forum.amebaiot.com/u/Andrey_M)\
**Replies:** 4\
**Last updated:** [April 19, 2024, 7:26am UTC](https://forum.amebaiot.com/t/sd-was-not-declared-in-this-scope-did-you-mean-si/2870 "2024-04-19T07:26:24Z")

</div>

Hello! I can’t create a folder from the code in Arduino ide 2.3.2 on the amb82mini board in sdcard. I connect the library \<SD.h\> but it always outputs an error when compiling like this. How to connect any other board …

---

## [Digital pin internal pullup query](https://forum.amebaiot.com/t/digital-pin-internal-pullup-query/2866)

<div class="topic-metadata">

**Author:** [@azhaque](https://forum.amebaiot.com/u/azhaque)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 5:50am UTC](https://forum.amebaiot.com/t/digital-pin-internal-pullup-query/2866 "2024-04-19T05:50:09Z")

</div>

Hi, In my attempts to establish communication between a BW16 and Wiz5550 ethernet chip I found that the Wiz5550 module that I am using has a floating CS/SS line. MOSI, MISO and CLK lines are also floating. A circuit co…

---

## [Keepalive power consumption of AMB82 or RTL8735B](https://forum.amebaiot.com/t/keepalive-power-consumption-of-amb82-or-rtl8735b/2848)

<div class="topic-metadata">

**Author:** [@sunzhanshan](https://forum.amebaiot.com/u/sunzhanshan)\
**Replies:** 1\
**Last updated:** [April 15, 2024, 2:58am UTC](https://forum.amebaiot.com/t/keepalive-power-consumption-of-amb82-or-rtl8735b/2848 "2024-04-15T02:58:56Z")

</div>

Hi I am interested in the power consumption of AMB82 or RTL8735B, i just saw deepsleep and standby modes, but when it connect to the router, and goes to deepsleep or standby mode, what will be the power consumption? It…

---

## [Jetlink flash download AMB82-MINI](https://forum.amebaiot.com/t/jetlink-flash-download-amb82-mini/2851)

<div class="topic-metadata">

**Author:** [@gkirill](https://forum.amebaiot.com/u/gkirill)\
**Replies:** 0\
**Last updated:** [April 12, 2024, 3:50am UTC](https://forum.amebaiot.com/t/jetlink-flash-download-amb82-mini/2851 "2024-04-12T03:50:59Z")

</div>

Hello, all! The board AMB82-MINI has holes for flash programming using JetLink, but J-Flash does not support RTL8735b. Is there any way to add it to the list of supported devices? I also know that the parameters of all…

---

## [Trying to Connect BW16 to Wiz5500 using SPI](https://forum.amebaiot.com/t/trying-to-connect-bw16-to-wiz5500-using-spi/2833)

<div class="topic-metadata">

**Author:** [@azhaque](https://forum.amebaiot.com/u/azhaque)\
**Replies:** 11\
**Last updated:** [April 12, 2024, 2:37am UTC](https://forum.amebaiot.com/t/trying-to-connect-bw16-to-wiz5500-using-spi/2833 "2024-04-12T02:37:24Z")

</div>

Hi all, I am using the following code to read the VERSIONR Register in Wiz5500 ethernet chip. /\* Dated: 4th April \* \* A sketch to read the VERSIONR Register using SPI in Arduino. \* Module is RTL8720 (BW16) \* …

---

## [Ameba1的GPIO命名问题](https://forum.amebaiot.com/t/ameba1-gpio/2822)

<div class="topic-metadata">

**Author:** [@baoyingcheng](https://forum.amebaiot.com/u/baoyingcheng)\
**Replies:** 1\
**Last updated:** [April 8, 2024, 2:58am UTC](https://forum.amebaiot.com/t/ameba1-gpio/2822 "2024-04-08T02:58:24Z")

</div>

我发现在variant.cpp里有GPIO的命名，类似其他M3的单片机，用的是PA\_6这样的，但实际编译的时候却显示缺少macro定义，好像只能直接用pin number来调用GPIO，不能用pin name。而芯片和模块的手册里都命名为PA6或者GPIOA\_6，这些都不能用。 想请问： 1.是否只能用开发板上标的引脚号？不能用引脚名？ 2.引脚号是否只有19个？我用的是rtl8195am的模块，按照芯片手册明明有40多个引脚。

---

## [RTL8720 (BW16) SPI TEST using Loopback](https://forum.amebaiot.com/t/rtl8720-bw16-spi-test-using-loopback/2820)

<div class="topic-metadata">

**Author:** [@azhaque](https://forum.amebaiot.com/u/azhaque)\
**Replies:** 1\
**Last updated:** [April 4, 2024, 1:20am UTC](https://forum.amebaiot.com/t/rtl8720-bw16-spi-test-using-loopback/2820 "2024-04-04T01:20:02Z")

</div>

A short video showing SPI function on BW16 using Loopback. Implementation is in Arduino. The data goes out of the MOSI pin and is simultaneously read back thru MISO. The data is sent to the PC using Serial…

---

## [How to define a 1MB continuous Flash memory area?](https://forum.amebaiot.com/t/how-to-define-a-1mb-continuous-flash-memory-area/2807)

<div class="topic-metadata">

**Author:** [@White\_Jason](https://forum.amebaiot.com/u/White_Jason)\
**Replies:** 1\
**Last updated:** [April 1, 2024, 3:36am UTC](https://forum.amebaiot.com/t/how-to-define-a-1mb-continuous-flash-memory-area/2807 "2024-04-01T03:36:35Z")

</div>

How to change the layout of 4MB Flash? My firmware package is probably over 1MB. OTA1 planning is 1.5MB OTA2 planning is 1.5MB The remaining area is 1MB, customized for FlashDB database storage. When I use Arduino ID…

---

## [Newbie Cannot run SoftwareSerial Example in Arduino](https://forum.amebaiot.com/t/newbie-cannot-run-softwareserial-example-in-arduino/2814)

<div class="topic-metadata">

**Author:** [@azhaque](https://forum.amebaiot.com/u/azhaque)\
**Replies:** 3\
**Last updated:** [March 31, 2024, 1:24pm UTC](https://forum.amebaiot.com/t/newbie-cannot-run-softwareserial-example-in-arduino/2814 "2024-03-31T13:24:17Z")

</div>

Hi, My objective is to run 2 serial ports concurrently on the BW16. For this purpose I have used a TTL to UART adapter for uploading sketch. Simultaneously I want to use the onboard CH341 based USB port for my second se…

---

## [Serial communication between Teensy and RTL8720dn](https://forum.amebaiot.com/t/serial-communication-between-teensy-and-rtl8720dn/2796)

<div class="topic-metadata">

**Author:** [@microPC](https://forum.amebaiot.com/u/microPC)\
**Replies:** 3\
**Last updated:** [March 24, 2024, 11:13pm UTC](https://forum.amebaiot.com/t/serial-communication-between-teensy-and-rtl8720dn/2796 "2024-03-24T23:13:48Z")

</div>

Hello, I tested some very simple code in Arduino IDE that sends a string between the Teensy4.1 and ESP8266 via SerialSoftware library. One the Teensy side: #include \<SoftwareSerial.h\> SoftwareSerial Teensy\_SoftSerial(…

---

## [Firmware Flashing Tools Compiled for ARM?](https://forum.amebaiot.com/t/firmware-flashing-tools-compiled-for-arm/2776)

<div class="topic-metadata">

**Author:** [@at\_and\_red](https://forum.amebaiot.com/u/at_and_red)\
**Replies:** 1\
**Last updated:** [March 11, 2024, 3:41am UTC](https://forum.amebaiot.com/t/firmware-flashing-tools-compiled-for-arm/2776 "2024-03-11T03:41:28Z")

</div>

I know this is probably a long shot, but I was wondering if there’s a way we could get a firmware flashing tool (uartfwburn.linux) that can run on ARM? Specifically, on ARMhf (arm-linux-gnueabihf), but I’m sure other use…

---

## [BW16 Get RTC time with Deep Sleep](https://forum.amebaiot.com/t/bw16-get-rtc-time-with-deep-sleep/2666)

<div class="topic-metadata">

**Author:** [@zeeshan104](https://forum.amebaiot.com/u/zeeshan104)\
**Replies:** 7\
**Last updated:** [February 6, 2024, 7:13am UTC](https://forum.amebaiot.com/t/bw16-get-rtc-time-with-deep-sleep/2666 "2024-02-06T07:13:58Z")

</div>

Hello everyone, I am using BW16 (RTL7820DN with Arduino Core). I want to wake up my BW16 with RTC and also get the epoch time from RTC. I have a little program. What I am doing here is setting the initial time of RTC wit…

---

## [Antenna products compatible with AMB82 mini](https://forum.amebaiot.com/t/antenna-products-compatible-with-amb82-mini/2558)

<div class="topic-metadata">

**Author:** [@pcw0915](https://forum.amebaiot.com/u/pcw0915)\
**Replies:** 2\
**Last updated:** [January 30, 2024, 1:29am UTC](https://forum.amebaiot.com/t/antenna-products-compatible-with-amb82-mini/2558 "2024-01-30T01:29:18Z")

</div>

Antenna products compatible with AMB82 mini: Are there any antenna products that are stronger than the antenna provided as standard? If there is a compatible model on the market, please recommend it. I hope the antenna i…

---

## [Amb82 iic wire problem](https://forum.amebaiot.com/t/amb82-iic-wire-problem/2593)

<div class="topic-metadata">

**Author:** [@ren\_yucheng](https://forum.amebaiot.com/u/ren_yucheng)\
**Replies:** 14\
**Last updated:** [January 19, 2024, 9:52am UTC](https://forum.amebaiot.com/t/amb82-iic-wire-problem/2593 "2024-01-19T09:52:43Z")

</div>

I used the wire. h library of AMB82 to write a subfunction for reading registers. AMB82 was used as the host, and the compilation prompted the following warning, but it still passed. I tested the actual communication wit…

[Previous page](https://forum.amebaiot.com/c/arduino/peripherals/123.md?page=1)

[Next page](https://forum.amebaiot.com/c/arduino/peripherals/123.md?page=3)
