Giter Site home page Giter Site logo

esp32sharpir's Introduction

esp32sharpir's People

Contributors

nuwanj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

esp32sharpir's Issues

ESP32 WiFi module pin compatability issues

This isn't an issue with this library directly but it took me a bit to get everything working so I thought I might as well leave a comment here which will hopefully help out some other people.

When using this library or really any lib with the ESP32 that uses analogRead the WiFi module causes some issues with many of the pins causing them to read only 0 values. This will cause this library to divide by zero which I think is where one of the other issues in this repo come from.

The solution for me was to simply use pin 36 on the ESP32 and all was working fine after that.

It might be helpful to update the docs with some debugging notes mentioning this issue, if so, I can make a PR including that info.

The code crash

Hi,
I tried to run the example code, but the code crash:

PC : 0x400d14c0 PS : 0x00060c30 A0 : 0x800d14f3 A1 : 0x3ffb27c0
A2 : 0x00006ef0 A3 : 0x00000001 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x3ffb7f70 A7 : 0x00000000 A8 : 0x00000009 A9 : 0x3ffb2790
A10 : 0x00000000 A11 : 0x00000006 A12 : 0x00000006 A13 : 0x00000001
A14 : 0x00060a20 A15 : 0x00000001 SAR : 0x0000001a EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x400d2126 LEND : 0x400d2132 LCOUNT : 0x00000003

Backtrace: 0x400d14bd:0x3ffb27c0 0x400d14f0:0x3ffb27e0 0x400d140d:0x3ffb2800 0x400d2ac1:0x3ffb2820

What may be the reason?

The voltage level of the ESP32 pins is 3.3 volts

The input and output voltage of GP2Y0A21YK0F is 5v, but the voltage level of the ESP32 pins is 3.3 volts so how is your code able to handle this. Please can you provide the connection diagram.

integerdividebyzero

Hi, I try to use your lib but I get sometimes thr error
"guru meditation error: core 1 panic'ed (integerdividebyzero). exception was unhandled"

"ESP32SharpIR.cpp"
57 distance = (28400) / (analogRead(pin));

The analogRead can be 0.
I fix it with +1 because 1 more ist for me not a Problem.
Tomorrow I will fix it better by checking if 0 then it will be 1 else the real value.

I hope you can fix it better then me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.