This post continues the BM78 series (Initializing Microchip’s BM78 module, …) with the different paring modes and an example implementation. Pairing modes So first lets look at the different pairing modes. There are four of them: typedef enum { BM78_PAIRING_PIN…
Year: 2019
Initializing Microchip’s BM78 module
In my previous posts BM78 Bluetooth module – First glance and BM78 Commands and Events in Application mode we got to know the BM78 module and learned how to communicate with it in Application-Mode in Manual-Pattern. In this post we…
Lighting up RGB LED Strip with a PIC Microcontroller
The goal of this post is to control a pretty much standard RGB LED strip using a microcontroller. I tried the code below on some PIC16F18855/75 and PIC18F47K42 but should work pretty much the same on any. Originally I implemented…
BM78 Commands and Events in Application-Mode
In my previous post https://blog.kubovy.eu/2019/02/09/bm78-bluetooth-module-first-glance/ we looked into basics of the BM78 module. Now lets talk about commanding this module in detail. Operating the BM78 module is done over UART commands send to the module. The module’s response is an…
State Machine for Microcontrollers
The will come a time when you will want to make a device which you can kind of program or configure during runtime. This configuration or program will than be telling the microcontroller what to do, how to behave enabling…
Memory modules over I2C
Memory is one of the resource you will miss on microcontrollers. Also not all microcontrollers allow you to store data during power loss / restarts. When developing embedded devices you may want to take idempotency and statelessness into consideration since…
WS281x using PIC
The WS281x (WS2811/WS2812) is an RGB LED control circuit allowing to configure (color, intensity) of multiple LEDs over one data line. The LEDs with the integrated WS281x circuit can be simply connected in serial using 3 lines (5V, GND and…
BM78 Bluetooth Module – First glance
To enable interaction with the environment our project will need some kind of communication interface. After some research we decided to go with Bluetooth. A nice comparison can be seen in the video below starting at 8:20. To summarize: Tech….
PIC16F18855/75 with HC-SR501 PIR Motion Sensor
Objective Motion detection for light control or alarm trigger. Wiring Since we covered the basics in our previous posts adding another module is unspectacular from the circuit point of view. We will use our LCD circuit do demonstrate the output….
PIC16F18855/75 with DHT11
Temperature and Humidity sensor controlled by a PIC and displayed to an LCD for debugging. In the future the LCD may be replace, e.g., with a Bluetooth module and read by another system. The Wiring We base our example here…