Hi,
I want to heat coil based on the input value received by bluetooth device.
I made a small circuit also for this. I am using Kanthal wire for heating, it's 22g wire which is 1.31Ω per foot. The wire needs current of 2.5 amp with 3.7 V battery to heat.
I am transferring ASCII values to bluetooth device with my phone.
Here is the code I am using:
The bluetooth is working fine! Example: When I send a ASCII value 5, I can see on Arduino serial monitor 5.
The problem is the circuit! I am not able to understand where I am making the mistake as based on the bluetooth input, fire is not heating up. Please help.
I want to heat coil based on the input value received by bluetooth device.
I made a small circuit also for this. I am using Kanthal wire for heating, it's 22g wire which is 1.31Ω per foot. The wire needs current of 2.5 amp with 3.7 V battery to heat.
I am transferring ASCII values to bluetooth device with my phone.
Here is the code I am using:
Code:
char c;
int state = 0;
uint32_t period = 1 * 60000L;// 1 min
void setup() {
while (!Serial);
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() {
if(Serial1.available()){
c = Serial1.read();
Serial.println(c);
if(c=='7'){
for( uint32_t tStart = millis(); (millis()-tStart) < period; ){
digitalWrite(A7, HIGH);
}
}
}
delay(1000);
}
The problem is the circuit! I am not able to understand where I am making the mistake as based on the bluetooth input, fire is not heating up. Please help.
Attachments
-
422 KB Views: 14
-
203 KB Views: 14