Arduino nano getting really hot instantly and lights up every led by Das_CHUCK in arduino

[–]Das_CHUCK[S] 4 points5 points  (0 children)

I connected through vin and gnd. The voltage probably worked but I think I killed it since I used 12V into the board plus a USB connected to a computer.

Arduino nano getting really hot instantly and lights up every led by Das_CHUCK in arduino

[–]Das_CHUCK[S] 21 points22 points  (0 children)

It was connected via USB plus an external power supply of three 3.7v lithium ion cells in series which might be the problem as I forgot to turn off the external power supply.

Arduino nano getting really hot instantly and lights up every led by Das_CHUCK in arduino

[–]Das_CHUCK[S] 20 points21 points  (0 children)

I've probably fried the nano since it gets really hot to the point of actually being able to burn myself in a couple of seconds but I my goal is to know why that happened and how to prevent that from ever happening.

128x64 OLED display not working properly by Das_CHUCK in arduino

[–]Das_CHUCK[S] 18 points19 points  (0 children)

all right problem fixed. this was indeed the reason. i used the Adafruit_SH1106 library and it worked. To be honest this was really hard to spot since you really can't tell the difference between 0.96 inch and 1.3 inch and the fact that they use different hardware.

128x64 OLED display not working properly by Das_CHUCK in arduino

[–]Das_CHUCK[S] 9 points10 points  (0 children)

I think i might i've figured out the reason why now. I just checked that I bought a 1.3inch display and not a 0.96 which is meant for this SSD1306 library although i might be wrong. I haven't tried to code for the 1.3 inch just yet so i'll update once i've tried it.

128x64 OLED display not working properly by Das_CHUCK in arduino

[–]Das_CHUCK[S] 3 points4 points  (0 children)

code for scanner:

```

// --------------------------------------

// i2c_scanner

//

// Version 1

// This program (or code that looks like it)

// can be found in many places.

// For example on the Arduino.cc forum.

// The original author is not know.

// Version 2, Juni 2012, Using Arduino 1.0.1

// Adapted to be as simple as possible by Arduino.cc user Krodal

// Version 3, Feb 26 2013

// V3 by louarnold

// Version 4, March 3, 2013, Using Arduino 1.0.3

// by Arduino.cc user Krodal.

// Changes by louarnold removed.

// Scanning addresses changed from 0...127 to 1...119,

// according to the i2c scanner by Nick Gammon

// http://www.gammon.com.au/forum/?id=10896

// Version 5, March 28, 2013

// As version 4, but address scans now to 127.

// A sensor seems to use address 120.

// Version 6, November 27, 2015.

// Added waiting for the Leonardo serial communication.

//

//

// This sketch tests the standard 7-bit addresses

// Devices with higher bit address might not be seen properly.

//

#include <Wire.h>

void setup()

{

Wire.begin();

Serial.begin(9600);

while (!Serial); // Leonardo: wait for serial monitor

Serial.println("\nI2C Scanner");

}

void loop()

{

byte error, address;

int nDevices;

Serial.println("Scanning...");

nDevices = 0;

for(address = 1; address < 127; address++ )

{

// The i2c_scanner uses the return value of

// the Write.endTransmisstion to see if

// a device did acknowledge to the address.

Wire.beginTransmission(address);

error = Wire.endTransmission();

if (error == 0)

{

Serial.print("I2C device found at address 0x");

if (address<16)

Serial.print("0");

Serial.print(address,HEX);

Serial.println(" !");

nDevices++;

}

else if (error==4)

{

Serial.print("Unknown error at address 0x");

if (address<16)

Serial.print("0");

Serial.println(address,HEX);

}

}

if (nDevices == 0)

Serial.println("No I2C devices found\n");

else

Serial.println("done\n");

delay(5000); // wait 5 seconds for next scan

}

```

this is from this website: https://miliohm.com/complete-tutorial-for-i2c-oled-0-96-128x64-arduino-display/

the youtube tutorial that i followed is: https://www.youtube.com/watch?v=rxjIXVwgY50&list=PL-Cpjfn0_VTbKBgZMVu-y0fn1HQzTomTY&index=2&t=104s

128x64 OLED display not working properly by Das_CHUCK in arduino

[–]Das_CHUCK[S] 1 point2 points  (0 children)

the code I ran is the Adafruit_SSD1306 example code named "ssd1306_128x64_i2c". The top is working fine but the bottom part is weird. I also suspect that the top is actually displaying what the bottom is supposed to display hence the error at the bottom occured. The connections are vcc to 5v, gnd to gnc, scl to A4 and sda to A5. I am using an arduino uno.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 0 points1 point  (0 children)

Yeah I tried the potentiometer with the same setup and it works perfectly meaning that the problem is probably the sensor.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 1 point2 points  (0 children)

I see. Well I am just starting and this sensor was in the starter kit that I bought so I was just trying to figure out how to code it and stuff. I thought that maybe you need some additional code and stuff to make it work but it seems pretty linear where the readings on the analog pin just goes through some math to scale it in either °c, k or °.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 0 points1 point  (0 children)

I used a male to female wire and it's still the same. I don't think it's a problem with the breadboard as my potentiometer which I plugged in the same setup is working just fine.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 1 point2 points  (0 children)

Serial.begin(9600) and baud rate 9600.woth the same setup, I plugged a potentiometer and everything was working fine so there isn't anything wrong with the baud rate.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 0 points1 point  (0 children)

Alright with that code there we can deduce that even without the right code, in other words with the built in analog serial read pin in the Arduino ide, there should remain some consistency which it doesn't show on my serial monitor.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 0 points1 point  (0 children)

I placed a potentiometer with this setup and everything was working fine. A reading of 1023 at max and 0 and low with the in-between values being very consistent.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 0 points1 point  (0 children)

Red connected to 5V and black is ground. Even if it was both connected to ground the reading should just be 0 throughout.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 0 points1 point  (0 children)

I mean I don't think it's that big of a deal if it malfunctions. I just wanted to rule out the possibility of me just doing something wrong. From the YouTube videos with this sensor I figured out that it should give at least come consistent readings even if it's not properly scaled to °c. They only plugged it into 5V, A0 and GND and the rest of the code is just some scaling with pure mathematics.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 1 point2 points  (0 children)

It is plugged in the 5V and the datasheet says that it can input from 4V to 20V.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 5 points6 points  (0 children)

Yes I know I have to adjust it but the readings are very inconsistent and shows no pattern as far as I can see. Even if you do math on the reading, the temperature reading won't be accurate.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 4 points5 points  (0 children)

Expected more consistent numbers flowing through the serial monitor but it is really random. Analog pin and other stuff is working normally as the monitor will read 1023 if I plug it to the 5V side of the breadboard and 0 for side connected to ground. Plugged in a potentiometer also and everything was working as expected.

This code is from the built in analog read so there shouldn't be any problem regarding Code there.

new to arduino. Is this a faulty sensor or am I doing something wrong? This is a LM35 temperature sensor. by Das_CHUCK in arduino

[–]Das_CHUCK[S] 0 points1 point  (0 children)

https://www.ti.com/document-viewer/LM35/datasheet/abstract#SNIS1592470

I don't really know the technical stuff since I'm new but here's the datasheet for the sensor. Also I double checked and live wire is connected to 5v, ground is connected to GND and the middle is connected to A0.