How to connect triac ac dimmer with bolt iot module?
@vinayak.joshi You will be the best person to handle this…
Hi @saifquraishi387 :
Could you provide details of of the dimmer you are trying to use?
Is it a single component, or is it some form of module?
Hi @saifquraishi387 :
It is not possible to interface a triac directly with the Bolt WiFi module (You can interface it, but controlling it correctly for AC phase control is not possible).
You can however interface the triac with an Arduino and then send commands to the Arduino via the Bolt WiFi module.
Please go through the following link to understand how to interface a triac with an Arduino.
https://playground.arduino.cc/Main/ACPhaseControl/
Please go through the following links to understand how to interface an Arduino with the Bolt WiFi module.
# Description
This library reduces the effort required to interface an Arduino to a Bolt module.
The library supports hardware as well as software serial UARTs, as such the Bolt can be interfaced to with any pins of the Arduino. But it would be more robust to use hardware UART over software UART.
By using this library, any data collected or processed by the Arduino can be sent to the Bolt Cloud.
# Installation steps
Please follow the steps to include the BoltIoT-Arduino-Helper library to Arduino
1. Click [here](https://github.com/Vinayakj009/boltiot-arduino-helper/archive/master.zip) to download the zip
2. Open Arduino IDE.
3. Click on ```Sketch->Include Library->Add .Zip library```.
4. Navigate to the folder where boltiot-arduino-helper-master.zip was downloaded, and select boltiot-arduino-helper-master.zip.
5. Press the 'Choose' button and the library is loaded to your Arduino IDE.
# (Optional) Defining global API key and device id (Details of why this is needed will be added later)
While it is a good idea to define the API key and device id as a part of the code, it is sometimes troublesome to write the corresponding code everytime you have a new project.
You can define a global API key or device id, by using the following steps.
1. Go to the ```libraries/boltiot-arduino-helper-master/src``` folder inside your sketchbook folder. The sketchbook folder is normally ```My Documents/Arduino``` folder for windows and ```~/Documents/Arduino/``` folder in Mac and Linux.
2. Open the file ```BoltDeviceCredentials.h``` file in a text editor.
3. Uncomment API_KEY or DEVICE_ID or both macros, whichever you want to make common across all examples.
4. Replace the dummy values with actual value for the corresponding macro.
This file has been truncated. show original
This is what I want to connect
Do I need arduino for that
Hi @saifquraishi387 :
As far as I can understand this module requires you to detect the zero-crossing of the AC signal, and then give a trigger to the triac.
This kind of a thing cannot be done with the Bolt WiFi module.
You will need to use the Arduino for this work.
Oh ok will you explain how to connect bolt arduino and triac
Hi @saifquraishi387 :
Please go through the following link to find out how to interface an Arduino with a Triac
https://playground.arduino.cc/Main/ACPhaseControl/