TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136632 times)
  2. FAT32 Library (69836 times)
  3. Network Ethernet Library (55890 times)
  4. USB Device Library (46226 times)
  5. Network WiFi Library (41862 times)
  6. FT800 Library (41083 times)
  7. GSM click (28944 times)
  8. PID Library (26402 times)
  9. mikroSDK (26317 times)
  10. microSD click (25328 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Bluetooth Switch

Rating:

1

Author: MIKROE

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Bluetooth®

Downloaded: 1254 times

Followed by: 2 users

License: MIT license  

This example demonstrates wireless Bluetooth switch control, using clicker2 for STM32, Bluetooth click board and Android smart phone.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Bluetooth Switch" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Bluetooth Switch" changes.

Do you want to report abuse regarding "Bluetooth Switch".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

BlueTooth Switch

BlueTooth Switch

Front side appearance of the Clicker2 for STM32 with BlueTooth and Relay click boards.

View full image

Classic is always in style, but with this new Android app, Bluetooth click is even more appealing. Wherever you see IoT mentioned, there’s probably mention of BLE behind the corner. Is it time to forget about Bluetooth classic?

Of course not. You should definitely stay in the loop and try to learn as much as you can about emerging technologies, nobody argues against it. But don’t let the new and shiny blind you. It’s just as important for developers to recognise occasions that call for a more conservative approach.

A BLE module may require only a coin cell battery to run, but it will drain more energy from you as a developer. If power consumption is not critical, classic bluetooth is much simpler to work with. Specifically, Bluetooth click has a familiar UART interface, an on-chip antenna, and a fully qualified 2.1/2.0/1.1 RN41 module with built-in firmware.

Also, consider that the majority of consumers still don’t have BLE-enabled smartphones. If you’re developing some sort of hardware that’s meant to connect with phones or tablets, Bluetooth classic is still a safer bet if you want a bigger pool of potential users.

To simplify development on the smartphone side, we developed an Android app that pairs with Bluetooth click. It’s just a simple interface with two switches for setting things on and off with a relay (our hardware setup is based on a clicker 2 for STM32 board and on a relay click). 

Examples are written for :
 - Clicker 2 Board for STM32 - STM32F407VG

ALSO FROM THIS AUTHOR

UART 1-Wire click

5

UART 1-Wire click is used to convert standard UART or 5V RS232 signals into 1-Wire signals.

[Learn More]

Clock Gen 5 click

0

Clock Gen 5 Click is a compact add-on board that contains a digital programmable oscillator solution. This board features the LTC6903, a low-power self-contained digital frequency source providing a precision frequency from 1kHz to 68MHz set through a 3-wire SPI digital interface from Analog Devices.

[Learn More]

Power Monitor click

0

Power Monitor Click is a compact add-on board that represents an ultra-precise power monitoring solution. This board features the INA228, a digital power monitor with a 20-bit delta-sigma ADC specifically designed for current-sensing applications from Texas Instruments. The INA228 reports current, bus voltage, temperature, power, energy, and charge accumulation while employing a precision ±0.5 % integrated oscillator, all while performing the needed calculations in the background. It can measure a full-scale differential input of ±163.84mV or ±40.96mV across a resistive shunt sense element, with common-mode voltage support up to +85V. This Click board™ is suitable for current-sensing applications in DC-DC converters, power inverters, telecom equipment, industrial measurements, and many more.

[Learn More]