Linked Questions

1
vote
1answer
146 views

Please help me combine the two codes for DHT11 and SW-420 Vibration sensor for arduino in one program [duplicate]

The following is the code used for DHT11 Temperature and Humidity sensor: #include <LiquidCrystal.h> LiquidCrystal lcd(4, 5, 0, 1, 2, 3); byte degree_symbol[8] = { ...
0
votes
1answer
146 views

How to combine two codes in arduino? [duplicate]

bine #include <LiquidCrystal.h> LiquidCrystal lcd(12,11,5,4,3,2); #define sensor A0 #define led 13 #define ledd 8 // d out from mq3 #define buz 9 #define motor 10 void setup() { ...
0
votes
1answer
211 views

how to combine two code of arduino uno [duplicate]

int mamank=13; void setup() { pinMode (mamank,OUTPUT); Serial.begin(9600); } void loop() { int sensorValue = analogRead(A0); Serial.println(sensorValue); if(sensorValue>550)digitalWrite(...
1
vote
0answers
103 views

DHT11 thermometer connected to a LCD and 2 servos connected to joysrick [duplicate]

Im trying to find a way to run two codes from the one arduino me being an absolute begginer doesnt even know where to start the DHT11 thermometer is connected to a LCD showing temperature and humidity ...
0
votes
1answer
39 views

I am trying to combine a button's coding and servo's coding. But it is still cannot be verified. What have I done wrong? [duplicate]

include Servo myservo; void setup(){ myservo.attach(8); pinMode(buttonPin, INPUT); } void loop() { myservo.write(0); delay(3); myservo.write(90); delay(3); } const int inPin=8; ...
1
vote
0answers
33 views

How to edit this IR sensor code to COINSLOT sensor [duplicate]

The project is Like a secured PiggyBank but it will count the coins inside it. Im using a coin sensor at default it has 5v, then goes to zer if inserted with a coin. I have 2 codes The one was form my ...
2
votes
0answers
30 views

i want to combine below two codes [duplicate]

*****1st code int sensoroutput = 3; // the analog pin connected to the sensor int sensorinput = A0; int THRESHOLD = 100; void setup() { pinMode(3, OUTPUT); pinMode(A0, INPUT); // this ...
1
vote
0answers
30 views

Combining the code of MAX30100 and DS-18B20 [duplicate]

sorry to ask this but I am very very new to Arduino. My project aims to collect the skin temperature by 18B20 and the heart rate & SPO2 level by MAX30100. I have tested the codes for the ...
1
vote
0answers
28 views

Need to operate 2 different sensors (MPU 6050 and Admp 401) simultaneously [duplicate]

I need to operate 2 different sensors (MPU 6050 and Admp 401) simultaneously. I have managed to run each one of them separately and I don't know how to manipulate the code so they could work together. ...
1
vote
0answers
25 views

error ph meter cant show the data [duplicate]

im using ph meter DFROBOT v1.0 at i compiled the code from the DFROBOT web this is the code * # This sample code is used to test the pH meter V1.0. # Editor : YouYou # Ver : 1.0 # Product: ...
1
vote
0answers
25 views

I have 2 sketches with same RTC DS1307 but when I combine the 2 sketches it gives errors [duplicate]

I have 2 sketches one is pixel clock with RTC ds 1307 and the other is 7 Segment with DHT 11, I want to merge the two into one but it is giving errors for rtc. sketch for pixel clock #include <Wire....
1
vote
0answers
20 views

How to combine this two sensor code [duplicate]

I have a problem. I don’t know how to combine this two codes & the diagram. My project is about automatic water storage door that using water sensor & rain sensor. The rain sensor will ...
1
vote
2answers
2k views

How to combine two different sensor sketches to one complete sketch?

How to combine two different sensor sketches to one complete sketch for a complete circuit that attaches to one Arduino Uno? Sharp Dust Sensor int measurePin = A0; // Connect dust sensor to Arduino ...
1
vote
1answer
455 views

How to rotate servo every 12 hours using RTC module?

I am trying to make a auto fish feeder to feed my fish every 6hours. I want to implement RTC module to my code. So far I've been using only an arduino and a servo using this as a code: #include <...
-1
votes
1answer
41 views

can anyone help me debug this code my delay microseconds is not working and my servo write for 180 as well

this is not my code this is what i found on makersguide i tried to use the same but it doesn't work #include <Servo.h> // Define Trig and Echo pin: #define trigPin 10 #define echoPin 9 // ...