TOP Contributors

  1. MIKROE (2655 codes)
  2. Alcides Ramos (353 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 (136781 times)
  2. FAT32 Library (69978 times)
  3. Network Ethernet Library (55948 times)
  4. USB Device Library (46274 times)
  5. Network WiFi Library (41888 times)
  6. FT800 Library (41184 times)
  7. GSM click (28987 times)
  8. PID Library (26419 times)
  9. mikroSDK (26372 times)
  10. microSD click (25381 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

RS485 3 click

5

RS485 3 click uses SN65HVD31DR from Texas Instruments, a tri-state differential line driver and differential input line receiver. The click is intended to be used as UART to RS422/RS485 communication interface. It is suited for transmitting smaller blocks of data over long distances, using the four-wire bus, allowing for full-duplex communication.

[Learn More]

Audio DAC click

0

Audio DAC Click is a compact add-on board perfect for upgrading your audio equipment. This board features the PCM5142, a 32-bit 384kHz audio stereo DAC with the DIR9001 digital audio receiver from Texas Instruments. The DIR9001 can receive 24-bit/96kHz signals at the highest via S/PDIF optical cable and complies with various digital audio standards, like IEC60958-3, JEITA CPR-1205, AES3, and EBUtech3250. The DIR9001's output is then processed via a stereo audio DAC, the PCM5142, with the latest generation of TI's advanced segment-DAC architecture to achieve excellent dynamic performance, detailed heights, and an exceptionally good sound stage.

[Learn More]

ADC 16 click

0

ADC 16 Click is a compact add-on board that contains a high-performance data converter. This board features the ADS7142-Q1, a low-power two-channel 12-bit analog-to-digital converter from Texas Instruments. This I2C configurable 140kSPS successive approximation register (SAR) analog-to-digital converter (ADC) can autonomously monitor signals while maximizing system power, reliability, and performance. It implements event-triggered interrupts per channel using a digital window comparator with programmable high and low thresholds, hysteresis, and event counter.

[Learn More]