Jump to content
Electronics-Lab.com Community


  • Content Count

  • Joined

  • Last visited


About MarkCrabs

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Realtek's RTL8722DM_mini development board is now supported in the Arduino IDE. In addition to features found on the regular RTL8722DM such as GPIO, UART, SPI, I2C, ADC, WiFi and BLE 5.0, the new mini development board integrates a microphone, audio output jack and SD card slot for audio related projects, while also reducing the PCB size to better fit into your projects. More details on the new development board can be found at: Ameba ARDUINO: Getting Started with RTL8722DM mini Join in the community discussions at: Facebook - Ameba IoT Forum Realtek Ameba IOT Develo
  2. With BLEUART, it is easy to expand the provided example code to accept custom UART commands to achieve your desired application. Here is an example of using BLEUART to achieve remote control of a robot car from a smartphone app. More details on the project can be found at: Project: Ameba BLE Robot Car Join in the community discussions at: Ameba IoT Forum[RTL8722/RTL8195/RTL8710/...] Realtek Ameba IOT Developers Forum (RTL8722, RTL8195, RTL8710, RTL8720) - IOT / MCU Solutions Purchase links for the various Realtek development boards can be found at: Buy Ameba Boards –
  3. SPI is a fast and robust communication protocol that are commonly found on many microcontrollers and is often used to retrieve sensor data or output image signal to a display. RTL8722DM supports SPI in both master and slave mode. Here we are going to see an example demonstrating how to receive data in slave mode on MicroPython on the RTL8722DM board. Before connection, make sure to upload the following code to your Arduino UNO. #include "SPI.h" #define SS 10 void setup (void) { Serial.begin(115200); //set baud rate to 115200 for usart digitalWrite(SS, HIGH); // disable Slave Sele
  4. I2C is a communication protocol commonly used for with interfacing with external sensors. A key advantage of the I2C bus is the low pin count required, only two wires are needed to achieve a data rate up to 3.4Mbps. It works in master-slave model and a master can simultaneously connect to up to 128 slaves, making it a very versatile communication protocol between microcontroller and sensor. Here we are going to use RTL8722DM as an I2C master and Arduino UNO as a slave to achieve I2C send and receive. Before connection, make sure to upload the “Examples -> Wire -> Slave_receiver”
  5. Introduction to developing for MicroPython — MicroPython API design and methods Introduction MicroPython is a scripting language whereas C/C++ is not, so there are a lot of rules we have to follow to make the Python compiler understand our C code. API Design Let’s take ADC module as an example, STATIC mp_obj_t adc_read(mp_obj_t self_in) { adc_obj_t *self = self_in; uint16_t value = analogin_read_u16(&(self->obj)); return mp_obj_new_int(value); } STATIC MP_DEFINE_CONST_FUN_OBJ_1(adc_read_obj, adc_read); There are a few things to take note: 1. Almost
  6. UART is a versatile communication protocol commonly used to transmit and receive data with other microcontrollers. To use the UART protocol with a PC, a TTL USB to Serial module is required to translate UART signals to USB signals. Here is an example of RTL8722 using the UART protocol with just a few lines of MicroPython code. Connect the USB to UART module to PA_21 and PA_22 as shown below:
  7. For developers interested in MicroPython, the process of building a MicroPython firmware image and adding new features is also easy. To build a MicroPython firmware successfully, the first step is to get the software and set them up correctly. Here is a list of the most important software that are used in the firmware building process, Cygwin: This is the first software you need to install, and we recommand using 32-bit version even for a 64-bit machine. During cygwin installation, there are 2 additional packeges to install as well, GNU make under Devel category and bc under Mat
  8. Microcontrollers are known for its low power usage and limited resources thus often deemed unable to understand Python script as Python need interpretor to translate script into machine langauge and intepretor are usaully quite resource-consuming. However, MicroPython has arisen as a lean and efficiant Python 3 interpretor that can be run on ARM Cortex-M series microcontrollers. Ameba RTL8722 is an ARM Cortex-M33 microcontroller that has dual-band WiFi and BLE 5.0, other than that it is fully capable of running MicroPython and controls WiFi using Python script. In addition, its requiremen
  9. Realtek's RTL8722DM development board now supports running Python code through the MicroPython firmware. You can now control the GPIO and other peripherals using the Python syntax through the REPL interface in MicroPython, or by writing it as a script on the device. A basic example using WiFi to control a LED can be seen at : Join in the community discussions at: https://www.facebook.com/groups/AmebaIoT/ https://forum.amebaiot.com/ Purchase links for the various Realtek development boards can be found at: https://www.amebaiot.com/en/where-to-buy-link/
  10. For more power savings, you can use BLE for transmitting small amounts of data. BLE is a more power saving focused wireless protocol compared to WiFi or standard BT, trading off bandwidth and range for greatly reduce power consumption. By adjusting connection parameters such as BLE connection intervals and slave latency, users can choose to further reduce bandwidth to minimize power consumption, which can be useful in IoT projects which do not need to transmit large amounts of data. Realtek's RTL8722 microcontroller supports BLE 5.0, can be programmed using the Arduino IDE and includes ex
  11. Besides saving power through using a E-Ink display, it is also important to minimize power consumption of the microcontroller, since wireless connections such as WiFi and BLE can use up significant amounts of your project's battery capacity if left on continuously. Realtek's RTL8722 microcontroller contains 2 processor cores, a high performance core for general user applications, and a low power core to maintain system state and check for wake triggers when the high performance core is in deep sleep mode. This allows the RTL8722 to reduce power consumption when the system is idle and ther
  12. E-Paper displays offer a unique advantage in that maintaining the displayed image does not require any power, unlike LCDs and OLEDs. Power is only actively consumed when updating the display, However, the downside is that display updates can be somewhat slow, depending on the display area to be updated. The unique features of E-Paper displays makes them a good match for low-power IoT projects, since the microcontroller can set the display and go into sleep mode, only waking up to read sensor values and update the display. This demo project shows how a RTL8722 microcontroller can be used t
  • Create New...