Bluno_M3_SKU_DFR0329 - jimaobian/DFRobotWiki GitHub Wiki
The ARM processor is famous for its efficient processing performance, but one of the downsides to this is that its developing environment is also quite complicated. Bluno M3, a new product designed by DFRobot, changes this. The rewritten underlying protocol and development environment have been rewritten to accommodate for Arduino language usage, giving it full Arduino compatibility. Bluno M3 has 512K flash memory and 64K SRAM, and the integrated Bluetooth 4.0 (BLE) supports Bluetooth wireless control or Bluetooth wireless programming. This board is suitable for robotic control or IOT applications and has a good balance between Arduino and ARM processing.
- Microcontroller: STM32 F103RET6
- Clock Speed: 72MHz
- Bluetooth chip: TI CC2540 (Bluetooth 4.0)
- Communication Range: 30m
- Operating Voltage: 3.3V
- DC Supply: USB Powered or External 7V~12V DC
- Digital I/O Pins: 39
- Analog Input Pins: 11 (Multiplexing Pins)
- External Interrupt: 39 (D0~D38)
- I2C/IWC: 30 (Default SDA), 29 (Default SCL)
- SRAM: 64K
- Flash: 512K (Customizable Flash assignment, refer to Flash chapterοΌ
- Default User Code repository: 492K
- Default User Data repository: 20K
- SPI: SPI,SPI1
- SPI 12(MISO), 11(MOSI), 13(SCK)
- SPI1 33(MISO), 34(MOSI), 32(SCK)
- Serial Port: 5 (Serial1/Serial2/Serial3/Serial4/Serial5)
- Serial1 0 (Rx1) & 1(Tx1)
- Serial2 22(Rx2) & 21(Tx2)
- Serial3 30(Rx3) & 29(Tx3)
- Serial4 8(Rx4) & 9(Tx4)
- Serial5 54(Rx5) & 53(Tx5)
- Dimensions: 68mm x 31mm
|style="float:left; margin-left: 10px;"|
The STM32 is a 3.3V processor. Do NOT use any 5V sensor/module with it in case of burning it!
- M3 Hardware UART1 connects to RX1/TX1 and Bluetooth communications port
- SCL/SDA is a default internal IIC interface, compatible with Arduino IIC use-pattern
- "~": PWM: pins with this mark can output a PWM signal (refer to PWM chapter for more information)
- "Ax": Analog input pins (note: some analog pins and digital pins are using the same GPIO)
- "SWD": STM32 debug port
- For pin definitions and functions refer to the MORE section: Bluno M3 Reference manual ββ GPIO
1. Overview The Bluno M3 is different to previous Bluno boards as it is based on a 32bit ARM Cortex-M3 core architecture. A regular Arduino is based on an 8bit AVR core. Due to these differences, machine commands are also different. Arduino IDE uses avr-gcc, whilst Bluno M3 uses arm-none-eabi-gcc.
2. Hardware Ports *ADC: Pins marked with "Ax" (e.g. A0, A6, A10) can be used as Analog input ports *Uart: 5 Serial Ports in all (Serial1/Serial2/Serial3/Serial4/Serial5). Bluetooth and RX1/TX1 use Serial1 *SWD: STM32 debug port, you can use debug hardware based on STM32 on these pins *GPIO: All pins can be used as digital I/O, including analog pins
3. Language and Library Software Differences *ADC: Bluno M3 provides two kinds of ADC mode: one is compatible with Arduino, the other is Bluno M3's unique way: adcMode() and adcRead(), which makes it more powerful. Refer to Bluno M3 Bluno M3 Reference manual ββ ADC ADC Application. *PWM: Bluno M3 provides two kinds of PWM mode, one is compatible with Arduino, the other is Bluno M3's unique way: pwmMode() and pwmWrite(),which makes it more powerful. Please refer to Bluno M3 Bluno M3 Reference manual ββ PWM PWM Application. *UART: There are 5 UARTs on the board. UART1 is corresponds to the Board RX1 and TX1, and it is also connected with the Bluetooth communicating port.
4. Bluno M3 Reference This section introduces basic information, methods of application, function interfaces and uses. e.g. GPIO, PWM, UART, SPI, I2C, etc. For the further information, please check Bluno M3 Reference Manual
In this section, we will guide you how to use Bluno M3 step by step.
### Setup Software Development Environment |
1. Download IDE and Bluno M3 Driver
Download Bluno M3 Arduino IDE ββ [https://onedrive.live.com/redir?resid=7B63697962CC93EA!133&authkey=!AEO3Nnxvjvxcmtk&ithint=folder%2cpdf Arduino IDE 1.5.5 (M3 Version) from OneDrive]
This is a custom version based on Arduino IDE 1.5.5 where we have redefined the interface functions. Please note that because of this, other versions are not compatible with Bluno M3.
2. Install Software
- Download Arduino IDE (Bluno M3 version) and extract the files to your computer.
- Configure Environment Variables
- Open Control Panel > System and Security > System > Advanced System Settings > Environment Variables
- Select PATH, and click Edit... button
- Copy the Arduino IDE 1.5.5 (Bluno M3 Version) directory path you downloaded before in to PATH. For example: C:\Arduino\hardware\tools\avr\utils\bin. Click OK.
Note: If there are a lot of directories in PATH, you can use ";"(semicolon) to split them.
### Install Bluno M3 Driver |
- Connect Bluno M3 to your PC's USB port, open Hardware Devices and select the Driver folder. Note: The Driver folder is located in your Arduino IDE 1.5.5 (Bluno M3 version) hardware drivers folder. e.g. C:\Arduino\hardware\drivers
### Blink an LED |
1) Open Arduino IDE 1.5.5 (Bluno M3 Version)
2) Select "Bluno M3" and COM port
3) Click "Files" > "Examples" > "0.1 Basic" > "Blink" to open the sample code "Blink".
4) Click "Upload" to upload the sketch to the device.
You should see the on-board LED flashing on and off every second.
Bluno M3 is a derivative of the Bluno microcontroller, as a result it inherits wireless programming and wireless communication functions. You can refer to the Bluno wiki page for Bluetooth configuration and the AT commend set. Bluno Wiki Page
Some recommendations:
Port
- PC<ββ>Bluno M3
- Bluno<ββ>Bluno M3
- Arduino<ββ>Bluno M3
Bluno M3
- USB BLE Link <ββ>Bluno M3
- Direct-connect <ββ>Bluno M3
- BLE Link <ββ>Bluno M3
Just configure one PERIPHERAL, the another CENTRAL. They will automatically connect.
'''Q1. '''Some general Arduino Problems/ FAQ/ Tips, very good to know. |
'''A. '''Clike the topic link on DFRobot Forum.
'''Q2. '''Can I use Bluno M3 on a MAC or Linux platform? |
A. Currently we have only developed a Windows version - it doesn't support MAC OS and Linux.--Intern (talk) 12:23, 16 May 2016 (CST)
Q3. I can't install the driver on Windows 8/10 |
A. Please try to disable the digital signature. How to disable Driver Signature?
'''Q4. '''Would this microcontroller connect to SPI devices whose operation voltage is 5V using ICSP? e.g. Pixy I noticed on your wiki for the Bluno M3 that you mention not to use any 5 V sensors, so I assume this will be incompatible. But, there is also mention of the 5 V ICSP Arduino compatible header. |
'''A. '''Yes, it is the only way to use SPI devices (5V, operation voltage) through ICSP header.
'''Q5. '''Would Arduino libraries in general work OK or are there compatibility issues? |
'''A. '''Sorry if you use Arduino library related with IIC or SPI interface, then most of the libraries can not be used for Bluno M3, you have rewrite it. But other libraries can work with our customized Arduino 1.5.5.
'''Q6. '''How to use CC debugger to flash the CC2540? |
'''A. '''Please read How to flash a new CC2540 chip with DFRobot BLE service?
For any question/advice/cool idea to share, please visit DFRobot Forum.
Bluno M3 Reference Manual [https://onedrive.live.com/redir?resid=7B63697962CC93EA!133&authkey=!AEO3Nnxvjvxcmtk&ithint=folder%2cpdf Bluno M3 Resource] (OneDriver)
shopping from dfrobot store or dfrobot distributor.