![]() You can now connect with the other dongle using the script.You should be greeted by this welcome message:.You can just leave it as is and click run. The first time you click it the ‘Run Configuration’ window will appear. In STMCubeIDE click the green play button to flash and run it on your board.Connect the BleuIO Dongle before running the example.Open up the ‘STMicroelectronics STLink Virtual COM Port’ with a serial terminal emulation program like TeraTerm, Putty, or CoolTerm.Serial port Setup:.In STMCubeIDE click the hammer icon to build the project.You should see the project “stm32_bleuio_example”, check it and click ‘Finish’.Make sure you’ve chosen your workspace in ‘Select root directory:’.Then choose General>Existing Projects into Workspace then click ‘Next >’.How to setup project Downloading the project from GitHubĮither clone the project or download it as a zip file and unzip it, into your STM32CubeIDE workspace. To connect the dongle to the Nucleo board a “USB A to Micro USB B”-cable with a USB A female-to-female adapter can be used.) (A Nucleo-144 development board: NUCLEO-H743ZI2, was used to develop this example. A board with an STM32 Microcontroller with a USB port.The script for the dongle (available on the source code inside the web script folder).Using the example project What you will need In the USBH_CDC_ReceiveCallback function in USB_HOST\usb_host.c we copy the CDC_RX_Buffer into an external variable called dongle_response that is accessible from the main.c file. In the pinout view, we set the GPIO PE4 to OUTPUT and labeled it to ‘lightbulb’. This project-based on our previous STM32 project ( ) with these changes in the. Pinout and Connection to STM32 For the DC part of the Relay circuit connect S (signal) to pin PE4 on the STM32 NUCLEO board, also connect the Power supply ( ) and ground (-) to 5V and GND respectively. PLEASE TAKE ALL NECESSARY PRECAUTIONS, AND TURN OFF ALL POWER TO A CIRCUIT BEFORE WORKING ON IT.īeware: Always be very careful when experimenting with AC, electrical shock can result in serious injuries! NOTICE OF RISK DISCLAIMER OF LIABILITY WARNING – THIS PROJECT INVOLVES HIGH VOLTAGES THAT CAN CAUSE SERIOUS INJURY OR DEATH. If you want to use another setup you will have to make sure it supports USB Host and beware that the GPIO setup might be different and may need to be reconfigured in the. We have used an STM32 Nucleo-144 development board with STM32H743ZI MCU (STM32H743ZI micro mbed-Enabled Development Nucleo-144 series ARM® Cortex®-M7 MCU 32-Bit Embedded Evaluation Board) for this example. Send ATI (Request device information) command to BlueIO Dongle. It will also accept 3 different inputs from the UART: input This allows the other Dongle to connect to it. When the BleuIO Dongle is connected to the Nucleo board USB port the STM32 will recognize it and directly start advertising. You will need two dongles, one connected to the Nucleo board and one connected to a computer, running the web script. The project is showcasing a simple way of using the BLE BleuIO Dongle to turn on and off a Smart light bulb that is connected to the STM32 Nucleo-144 via a 5V Relay. The aim of this project is to control different home appliances using a web browser or smartphone. To achieve that, we have created a smart bulb that is easy to install, and the attached equipment can be controlled over a web browser or smartphone app. Home automation involves automating household environment equipment. In this project, we will learn how to make a BLE enabled Smart Bulb with STM32
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |