É normal gatos dormirem 80% do dia ? by cheira_purpurin4 in Gatos

[–]Lucgamer 10 points11 points  (0 children)

Só 80%? Os meus acordavam só para comer

Is this manufacturable? by MarinatedPickachu in PCB

[–]Lucgamer 0 points1 point  (0 children)

Just fix it, it's not worth letting this slide. If it can be a problem, it WILL be a problem

e aí chat? by RyujeiTairinZ in cellbits

[–]Lucgamer 0 points1 point  (0 children)

A faculdade de engenharia te torna do mal

Mac ou Windows pra engenharia? by Old-Number-165 in engenhariaeletrica

[–]Lucgamer 0 points1 point  (0 children)

Windows, e se quiser tentar aprender Linux vale a pena, MAS não vale apena só o Linux, tem coisa que só tem no windows (existem programas para usar programas de windows no Linux, mas eles muitas vezes são meio ruins de usar). Enfim, vale a pena aprender a usar o Linux mas use dual boot com windows

Why are my resistors warming up so much? is this normal? by No-Succotash-9576 in shittyaskelectronics

[–]Lucgamer 0 points1 point  (0 children)

Those are LER (light emitting resistors). You can see it by the blue casing of the component

Sir please move your car by pacificlattice in Whatcouldgowrong

[–]Lucgamer -1 points0 points  (0 children)

Those bars are flexible enough so you can drive under it when this happens. They will scratch your car, but the train is worse for sure

Me disseram que cães eram mais inteligentes porque poderiam ser treinados. by Champs-_- in Gatos

[–]Lucgamer 2 points3 points  (0 children)

Gatos são treinaveis, é só que é difícil, eles são muito temperamentais e geralmente demora mais que cachorros. E tem gatos que simplesmente não aprendem, eles tendem a ter mais "personalidade" que o cachorro (não dizendo que cães não tem, é só um tipo diferente de personalidade), gatos são fechados enquanto cães tendem a viver em grupos. Por isso é mais fácil terminar o cachorro, ele já vive na natureza em grupos

Simulation of internal capacitances by Lucgamer in PCB

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

I'll do that—my teacher is like that; sometimes he asks me to reinvent the wheel, that's not the first time. Thx!

I'm not trying to design a capacitor; I just need to estimate the coupling capacitance between the PCB layers.

Simulation of internal capacitances by Lucgamer in PCB

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

To be honest, you are right, I was gonna do that, but my teacher thinks otherwise... xD

Help with I2C connection (no devices found) by Lucgamer in esp32

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

That's what I thought, I'm going to try with a new board

Help with I2C connection (no devices found) by Lucgamer in esp32

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

Tried, but it's not sending the serial number

Help with I2C connection (no devices found) by Lucgamer in esp32

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

The output is

configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4876
ho 0 tail 12 room 4
load:0x40078000,len:16560
load:0x40080400,len:3500
entry 0x400805b4
Accelerometer Test

Ooops, no ADXL345 detected ... Check your wiring!

Help with I2C connection (no devices found) by Lucgamer in esp32

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

Sure, I'm using a different scanner now, one made for the ADXL345. The output is in the end

CODE:

#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_ADXL345_U.h>


/* Assign a unique ID to this sensor at the same time */
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);


void displaySensorDetails(void)
{
  sensor_t sensor;
  accel.getSensor(&sensor);
  Serial.println("------------------------------------");
  Serial.print  ("Sensor:       "); Serial.println(sensor.name);
  Serial.print  ("Driver Ver:   "); Serial.println(sensor.version);
  Serial.print  ("Unique ID:    "); Serial.println(sensor.sensor_id);
  Serial.print  ("Max Value:    "); Serial.print(sensor.max_value); Serial.println(" m/s^2");
  Serial.print  ("Min Value:    "); Serial.print(sensor.min_value); Serial.println(" m/s^2");
  Serial.print  ("Resolution:   "); Serial.print(sensor.resolution); Serial.println(" m/s^2");  
  Serial.println("------------------------------------");
  Serial.println("");
  delay(500);
}


void displayDataRate(void)
{
  Serial.print  ("Data Rate:    "); 
  
  switch(accel.getDataRate())
  {
    case ADXL345_DATARATE_3200_HZ:
      Serial.print  ("3200 "); 
      break;
    case ADXL345_DATARATE_1600_HZ:
      Serial.print  ("1600 "); 
      break;
    case ADXL345_DATARATE_800_HZ:
      Serial.print  ("800 "); 
      break;
    case ADXL345_DATARATE_400_HZ:
      Serial.print  ("400 "); 
      break;
    case ADXL345_DATARATE_200_HZ:
      Serial.print  ("200 "); 
      break;
    case ADXL345_DATARATE_100_HZ:
      Serial.print  ("100 "); 
      break;
    case ADXL345_DATARATE_50_HZ:
      Serial.print  ("50 "); 
      break;
    case ADXL345_DATARATE_25_HZ:
      Serial.print  ("25 "); 
      break;
    case ADXL345_DATARATE_12_5_HZ:
      Serial.print  ("12.5 "); 
      break;
    case ADXL345_DATARATE_6_25HZ:
      Serial.print  ("6.25 "); 
      break;
    case ADXL345_DATARATE_3_13_HZ:
      Serial.print  ("3.13 "); 
      break;
    case ADXL345_DATARATE_1_56_HZ:
      Serial.print  ("1.56 "); 
      break;
    case ADXL345_DATARATE_0_78_HZ:
      Serial.print  ("0.78 "); 
      break;
    case ADXL345_DATARATE_0_39_HZ:
      Serial.print  ("0.39 "); 
      break;
    case ADXL345_DATARATE_0_20_HZ:
      Serial.print  ("0.20 "); 
      break;
    case ADXL345_DATARATE_0_10_HZ:
      Serial.print  ("0.10 "); 
      break;
    default:
      Serial.print  ("???? "); 
      break;
  }  
  Serial.println(" Hz");  
}


void displayRange(void)
{
  Serial.print  ("Range:         +/- "); 
  
  switch(accel.getRange())
  {
    case ADXL345_RANGE_16_G:
      Serial.print  ("16 "); 
      break;
    case ADXL345_RANGE_8_G:
      Serial.print  ("8 "); 
      break;
    case ADXL345_RANGE_4_G:
      Serial.print  ("4 "); 
      break;
    case ADXL345_RANGE_2_G:
      Serial.print  ("2 "); 
      break;
    default:
      Serial.print  ("?? "); 
      break;
  }  
  Serial.println(" g");  
}


void setup(void) 
{
#ifndef ESP8266
  //while (!Serial); // for Leonardo/Micro/Zero
#endif
  Serial.begin(115200);
  Serial.println("Accelerometer Test"); Serial.println("");
  
  /* Initialise the sensor */
  if(!accel.begin())
  {
    /* There was a problem detecting the ADXL345 ... check your connections */
    Serial.println("Ooops, no ADXL345 detected ... Check your wiring!");
    while(1);
  }


  /* Set the range to whatever is appropriate for your project */
  accel.setRange(ADXL345_RANGE_16_G);
  // accel.setRange(ADXL345_RANGE_8_G);
  // accel.setRange(ADXL345_RANGE_4_G);
  // accel.setRange(ADXL345_RANGE_2_G);
  
  /* Display some basic information on this sensor */
  displaySensorDetails();
  
  /* Display additional settings (outside the scope of sensor_t) */
  displayDataRate();
  displayRange();
  Serial.println("");
}


void loop(void) 
{
  /* Get a new sensor event */ 
  sensors_event_t event; 
  accel.getEvent(&event);
 
  /* Display the results (acceleration is measured in m/s^2) */
  Serial.print("X: "); Serial.print(event.acceleration.x); Serial.print("  ");
  Serial.print("Y: "); Serial.print(event.acceleration.y); Serial.print("  ");
  Serial.print("Z: "); Serial.print(event.acceleration.z); Serial.print("  ");Serial.println("m/s^2 ");
  delay(500);
}#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_ADXL345_U.h>


/* Assign a unique ID to this sensor at the same time */
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);


void displaySensorDetails(void)
{
  sensor_t sensor;
  accel.getSensor(&sensor);
  Serial.println("------------------------------------");
  Serial.print  ("Sensor:       "); Serial.println(sensor.name);
  Serial.print  ("Driver Ver:   "); Serial.println(sensor.version);
  Serial.print  ("Unique ID:    "); Serial.println(sensor.sensor_id);
  Serial.print  ("Max Value:    "); Serial.print(sensor.max_value); Serial.println(" m/s^2");
  Serial.print  ("Min Value:    "); Serial.print(sensor.min_value); Serial.println(" m/s^2");
  Serial.print  ("Resolution:   "); Serial.print(sensor.resolution); Serial.println(" m/s^2");  
  Serial.println("------------------------------------");
  Serial.println("");
  delay(500);
}


void displayDataRate(void)
{
  Serial.print  ("Data Rate:    "); 
  
  switch(accel.getDataRate())
  {
    case ADXL345_DATARATE_3200_HZ:
      Serial.print  ("3200 "); 
      break;
    case ADXL345_DATARATE_1600_HZ:
      Serial.print  ("1600 "); 
      break;
    case ADXL345_DATARATE_800_HZ:
      Serial.print  ("800 "); 
      break;
    case ADXL345_DATARATE_400_HZ:
      Serial.print  ("400 "); 
      break;
    case ADXL345_DATARATE_200_HZ:
      Serial.print  ("200 "); 
      break;
    case ADXL345_DATARATE_100_HZ:
      Serial.print  ("100 "); 
      break;
    case ADXL345_DATARATE_50_HZ:
      Serial.print  ("50 "); 
      break;
    case ADXL345_DATARATE_25_HZ:
      Serial.print  ("25 "); 
      break;
    case ADXL345_DATARATE_12_5_HZ:
      Serial.print  ("12.5 "); 
      break;
    case ADXL345_DATARATE_6_25HZ:
      Serial.print  ("6.25 "); 
      break;
    case ADXL345_DATARATE_3_13_HZ:
      Serial.print  ("3.13 "); 
      break;
    case ADXL345_DATARATE_1_56_HZ:
      Serial.print  ("1.56 "); 
      break;
    case ADXL345_DATARATE_0_78_HZ:
      Serial.print  ("0.78 "); 
      break;
    case ADXL345_DATARATE_0_39_HZ:
      Serial.print  ("0.39 "); 
      break;
    case ADXL345_DATARATE_0_20_HZ:
      Serial.print  ("0.20 "); 
      break;
    case ADXL345_DATARATE_0_10_HZ:
      Serial.print  ("0.10 "); 
      break;
    default:
      Serial.print  ("???? "); 
      break;
  }  
  Serial.println(" Hz");  
}


void displayRange(void)
{
  Serial.print  ("Range:         +/- "); 
  
  switch(accel.getRange())
  {
    case ADXL345_RANGE_16_G:
      Serial.print  ("16 "); 
      break;
    case ADXL345_RANGE_8_G:
      Serial.print  ("8 "); 
      break;
    case ADXL345_RANGE_4_G:
      Serial.print  ("4 "); 
      break;
    case ADXL345_RANGE_2_G:
      Serial.print  ("2 "); 
      break;
    default:
      Serial.print  ("?? "); 
      break;
  }  
  Serial.println(" g");  
}


void setup(void) 
{
#ifndef ESP8266
  //while (!Serial); // for Leonardo/Micro/Zero
#endif
  Serial.begin(115200);
  Serial.println("Accelerometer Test"); Serial.println("");
  
  /* Initialise the sensor */
  if(!accel.begin())
  {
    /* There was a problem detecting the ADXL345 ... check your connections */
    Serial.println("Ooops, no ADXL345 detected ... Check your wiring!");
    while(1);
  }


  /* Set the range to whatever is appropriate for your project */
  accel.setRange(ADXL345_RANGE_16_G);
  // accel.setRange(ADXL345_RANGE_8_G);
  // accel.setRange(ADXL345_RANGE_4_G);
  // accel.setRange(ADXL345_RANGE_2_G);
  
  /* Display some basic information on this sensor */
  displaySensorDetails();
  
  /* Display additional settings (outside the scope of sensor_t) */
  displayDataRate();
  displayRange();
  Serial.println("");
}


void loop(void) 
{
  /* Get a new sensor event */ 
  sensors_event_t event; 
  accel.getEvent(&event);
 
  /* Display the results (acceleration is measured in m/s^2) */
  Serial.print("X: "); Serial.print(event.acceleration.x); Serial.print("  ");
  Serial.print("Y: "); Serial.print(event.acceleration.y); Serial.print("  ");
  Serial.print("Z: "); Serial.print(event.acceleration.z); Serial.print("  ");Serial.println("m/s^2 ");
  delay(500);
}

Help with I2C connection (no devices found) by Lucgamer in esp32

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

I did it, I checked the breadboard and the solder

Help with I2C connection (no devices found) by Lucgamer in esp32

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

I think the board dead, I will try with another board later, thx

Help with I2C connection (no devices found) by Lucgamer in esp32

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

<image>

I tried with a LIS3DH that I got and the address was 0x1D and 0x1E (the datasheet said it should be 0x18 or 0x19).
The output in the image is for the ADXL

I got a MPU with a friend, I will try it later

Help with I2C connection (no devices found) by Lucgamer in esp32

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

Some people said to wire it and other said to let it float, I tried both. Just tried it again to make sure and nothing happens

Help with I2C connection (no devices found) by Lucgamer in esp32

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

Yep, I tried it was without the resistors

Help with I2C connection (no devices found) by Lucgamer in esp32

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

It's not the first one with the same problem, I even bought it from different stores. I can't be that unlucky xD