Hello,
I am a newbie to Arduino community!
I have tried out basic projects and wish to learn more
In my next project, I plan to use Kanthal A1 wire wrapped around ceramic wick dipped in scent to produce smell. Here, I want to produce the scent only when the resistance in the stretch sensor goes above certain threshold.
I am using IRLB 8721 mosfet, Adafruit Flora V3, Adafruit Conductive Rubber Cord Stretch Sensor.
The issue I am facing now is MOSFET & battery does heated up very quickly. Also, I think the circuit I have built can be improved.
Suggestions welcome and highly appreciated
I am a newbie to Arduino community!
I have tried out basic projects and wish to learn more
In my next project, I plan to use Kanthal A1 wire wrapped around ceramic wick dipped in scent to produce smell. Here, I want to produce the scent only when the resistance in the stretch sensor goes above certain threshold.
I am using IRLB 8721 mosfet, Adafruit Flora V3, Adafruit Conductive Rubber Cord Stretch Sensor.
The issue I am facing now is MOSFET & battery does heated up very quickly. Also, I think the circuit I have built can be improved.
Suggestions welcome and highly appreciated
Code:
#define RUBBERCORDPIN A11 //This is the pin where the cord is connected tp
void setup(void) {
Serial.begin(9600);
digitalWrite(A7, LOW);
}
void loop(void) {
int value;
value = analogRead(RUBBERCORDPIN); //Read value
Serial.print("Analog reading ");
if(analogRead(A11) > 250) { //if the analog value of A11 is greater than 250 then
digitalWrite(A7, HIGH); //write digital pin 7 high
}
else {
digitalWrite(A7, LOW); //
}
Serial.println(value); //Print value
delay(1000);
}
Attachments
-
451.4 KB Views: 32