Mazaryk
  • Member for 4 years, 9 months
  • Last seen this week
1 answers
6 votes
2k views
EPS8266 ESP-01: LED manipulation seems to interfere with serial communication
Accepted answer
7 votes

I would bet that the built-in LED pin is also the TX pin for the serial interface. Check here, LED Pin section: http://www.esp8266.com/wiki/doku.php?id=esp8266_gpio_pin_allocations LED Pin ...

View answer
5 answers
0 votes
87k views
Can I make multiple void loops with Arduino Uno?
Accepted answer
7 votes

As the others have stated, no you can't have multiple loop functions. What you need to do is modify your approach so that each thing you are trying to do can be done sequentially without blocking (ie: ...

View answer
1 answers
0 votes
1k views
Logic level converter not working?
6 votes

Based on your schematic, you need to provide a 3.3v power source to the 3.3v side of the logic level converter. You can use the 3.3v pin on the Arduino. Also, it's really hard to evaluate your ...

View answer
1 answers
0 votes
1k views
serial.write if condition
Accepted answer
3 votes

You declare incomingchar as a char. In your if you compare that char to a string (double quotes) incomingchar=="g". I think you want to compare it to a char (single quotes) like this: if ( ...

View answer
3 answers
1 votes
149 views
Arduino Shield on Breadboard
3 votes

Chances are the offset headers won't allow the shield to directly plug into a breadboard. As @Majenko noted, shields have a header that is offset by 0.16" from the other headers. Since a breadboard ...

View answer
1 answers
0 votes
2k views
How to connect an Arduino and a WAMP server's MySQL database?
2 votes

As gre_gor pointed out, it looks like your connecting to the wrong ip. Change: IPAddress server_addr(192, 168, 1, 3); // IP of the MySQL *server* here To: IPAddress server_addr(192, 168, 1, 2); //...

View answer
2 answers
3 votes
4k views
Trying to make a heart rate analyser with Arduino that will calculate the BPM of a person
2 votes

// Record the start time into time1 if(count==0) { time1=millis(); } // Set time2 to the current time time2=millis(); // Read the sensor sensorValue = analogRead(sensorPin); // If the sensor ...

View answer
1 answers
0 votes
164 views
What's wrong with my code?
2 votes

if (pinOn = 0) is doing an assignment (single =) not a comparison (double ==), so pinOn is begin set to 0 each time through the loop. The result of an assignment is the value being assigned. So it's ...

View answer
4 answers
1 votes
529 views
LED series Resistor- Noob question
2 votes

The two LEDs in series have a forward voltage of 6v which is more than the Arduino's supply voltage. Forward voltage is the bare minimum amount of voltage required for the LEDs to start conducting ...

View answer
2 answers
2 votes
9k views
ESP8266 TCP connection WiFiClient issue
Accepted answer
2 votes

You have declared WiFiClient client; in the scope of setup() only. Move it's declaration to the global scope by placing it above the declaration of void setup()

View answer
2 answers
5 votes
19k views
How to receive data from my server database to a variable in my Arduino?
2 votes

After you send the GET request, you read the response to fill the char result [20] variable you declared: int i=0; ... if (client.connect(server, port)) { client.print("GET /locator.php?"); ... ...

View answer
2 answers
1 votes
68 views
How do i get stored Midi to Play back without the notes sounding sustained?
2 votes

You need to store and send out the 'note off' messages in addition to the 'note on' messages.

View answer
2 answers
2 votes
1k views
Press on pressure sensor, then wait 5 seconds, turn on LED
Accepted answer
2 votes

The basic concept for tracking timing in the loop() is as follows: 1) when your event occurs, you store the current time in a variable: unsigned long lastReading = 0; uint8_t waiting = false; if ( ...

View answer
5 answers
6 votes
72k views
How to make a 5-volt relay work with NodeMCU?
2 votes

I believe the problem could be that the relay is 5v but the signal coming from the NodeMCU is 3.3v. You may need do something like boost the signal to 5v or implement a logic level shifter, for ...

View answer
5 answers
-2 votes
1k views
How many pins are needed for a sensor?
2 votes

One, maybe two. It's impossible to say for sure without a concrete example. I would recommend looking up the type of sensor(s) you want to use, and read the data sheet(s). Things you'll want to ...

View answer
1 answers
2 votes
111 views
wiring a arduino led project
2 votes

When choosing wire for your project the main consideration is the amount of current. Second would be the distance. For LEDs the current is generally low (milliamps) so something like a 20 or 22 ...

View answer
7 answers
2 votes
16k views
Better cycling through the RGB colors
Accepted answer
2 votes

I think it's worth noting that the three 255 values for RGB colour space is just one way to encode the 255^3 (16,581,375) colours. These include each and every brightness level too. If you are ...

View answer
2 answers
1 votes
229 views
What do I do with the potentiometer on Adafruit RGB LCD
Accepted answer
1 votes

The potentiometer is for setting the contrast level of the LCD. The Shield Kit shown also comes with a pot (the one with the orange face). Assembled it should look like this: Notice the pot in the ...

View answer
1 answers
0 votes
39 views
What is the meaning of [type]* for arrays?
Accepted answer
1 votes

You are asking about Pointers - https://www.tutorialspoint.com/cprogramming/c_pointers.htm.

View answer
2 answers
1 votes
3k views
How to code multiple conditions inside if statement?
1 votes

I'm not sure how quickly you soil could get dry, but I suspect what you want to do is to periodically check the dryness throughout the day. Say like every two hours: // Check every 2 hrs (when hr is ...

View answer
3 answers
0 votes
5k views
"Hello World" program for nRF24L01+?
Accepted answer
1 votes

I found this site to have pretty strait forward instructions: https://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/ Main Library: https://github.com/maniacbug/RF24/ Example Sketch: https:...

View answer
3 answers
5 votes
4k views
Make Sure \n is the last character in serial string
1 votes

Serial.avilable() returns the number of bytes available in the buffer. One solution could be to try reading that many bytes at a time. This assumes that the buffer contains only entire strings. Note:...

View answer
2 answers
1 votes
4k views
#endif without #if
Accepted answer
1 votes

It looks like your comment style is causing the problem. Remove the ////////////// BOARD SETTINGS \\\\\\\\\\\\\\ style comments, or change them to something like: /*----------- BOARD SETTINGS --------...

View answer
3 answers
2 votes
911 views
Serial communication on Arduino Uno
1 votes

If you goal is to relay a string from RPI through the Arduino to a device connected via SoftwareSerial then you should be doing something like this: #include <SoftwareSerial.h> String b = "0"; ...

View answer
2 answers
1 votes
4k views
comparing the entries of two arrays
1 votes

Start by assuming they match. Loop over each element pair, compare them, and set a flag when you find a pair that don't match. bool they_match = true; // assume they match for ( int i = 0; i < x;...

View answer
2 answers
0 votes
120 views
Issue with IF statement
Accepted answer
1 votes

There's probably a good chance that when you trigger the ON state by placing your hand close to the sensor, the while loops runs and hits the if statement before you have moved your hand out of the ...

View answer
2 answers
0 votes
792 views
How to reset the arduino uno after 5 seconds?
1 votes

I would think the rfid library would be able to read multiple cards in a row... however I'm not familiar with it. Here is an answer from a similar question about how to initiate a hardware reset with ...

View answer
5 answers
-1 votes
1k views
'setup' does not name a type?
1 votes

Function declarations start with a type: void setup() { } void loop() { } void means the function doesn't return a value.

View answer
2 answers
2 votes
2k views
Working or functionality Serial.begin(9600)
1 votes

Serial.begin(9600); This line starts Serial communication with a baud rate of 9600. Serial communication is used to transmit data between your application and external systems (including your PC, ...

View answer
2 answers
0 votes
1k views
Light up more than one LED connected to 74HC595 Shift Register
Accepted answer
1 votes

You don't mention if you are using and Arduino, but I will assume that is the case. Using the shift register to light up LEDs is fairly straight forward. You can use the ShiftOut() function to ...

View answer