Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. sensor
    Log in to post

    • A

      ADC conversion values
      Discussion • lopy4 adc sensor adc accuracy • • Alephus  

      4
      0
      Votes
      4
      Posts
      271
      Views

      robert-hh

      @mrks-tsk The capacitor has to be placed between ADC input and GND. In your diagram at the VBATT side.
    • W

      How to distinguish sensors?
      WiPy 2&3 • lopy wipy sensor • • Wolli01  

      6
      0
      Votes
      6
      Posts
      421
      Views

      W

      @robert-hh Thank You!
    • B

      SPI + MS5540C driver
      Discussion • spi sensor ms5540c • • BorbonJuggler  

      2
      0
      Votes
      2
      Posts
      342
      Views

      T

      hello there, Did you manage to solve this issue? :) Thanks
    • W

      Wer hat den Sensor SHT20 oder SHT21 erfolgreich an laufen?
      LoPy • lopy fipy wipy sensor ic2 • • Wolli01  

      4
      0
      Votes
      4
      Posts
      371
      Views

      Frida

      Gern geschehen. Grüße aus Dänemark
    • W

      Help me please Sensor SHT20 SHT21
      LoPy • lopy wipy sensor • • Wolli01  

      2
      0
      Votes
      2
      Posts
      251
      Views

      W

      Doesn't anybody have such a sensor running and could help me get mine to run?
    • W

      I am looking for a temperature and humidity sensor
      LoPy • lopy wipy 3.0 sensor bme280 • • Wolli01  

      5
      0
      Votes
      5
      Posts
      472
      Views

      W

      @robert-hh Okay, thanks for your help.
    • J

      LOPY SPI Mikroe click module
      LoPy • lopy spi sensor • • johncaipa  

      4
      0
      Votes
      4
      Posts
      487
      Views

      robert-hh

      @johncaipa said in LOPY SPI Mikroe click module: adc = (((buf[0] << 8) | buf[1]) & 0xfff) >>1 That one is wrong. You have to shift the raw value befor masking. The lowest bit of the returned value will not be at bit0 of adc, so you have to shift to to the right. Reason: The adc starts shifting out values at the 2nd (or third?) clock cycle, and SPI will create 16 clock cycles. So there are like 14 bits in the result buffer, of which only the high order 12 bits are valid. The others have to be discarded and the value has to be properly aligned. If you use a separate CS pin, you can simply use spi.read_into(). spi.read_into(buf) adc = ((buf[0] << 8) | buf[1]) >> x) & 0xfff x should be a value between 1 and 3. Best is to determine it experimentally. The conv variable and write_readinto() is only used to create the CS signal at the MOSI pin. By using an appropriate pattern for conv, like 0x8000, 0xc000, of 0xe000, you can shift the CS signal in clock steps, making the final shift of the result obsolete. So doing that save a pin and saves a few instructions.
    • B

      DS18b20 temperature values format
      SiPy • sensor ds18b20 format • • brossingo  

      3
      0
      Votes
      3
      Posts
      617
      Views

      robert-hh

      @brossingo I'm using this lib for Pycom devices: https://github.com/pycom/pycom-libraries/tree/master/examples/DS18X20 It works well. I tested it only with a single device on the bus, but there is also support for multiple devices.
    • B

      Onewire library function does not work
      Pymakr • sensor onewire ds18b20 • • brossingo  

      2
      0
      Votes
      2
      Posts
      525
      Views

      robert-hh

      @brossingo G5 is an input only pin, like G4, G0, G3, G31 and G30. Try another pin, like G22 or G17 or G7 or G6 or ....
    • N

      Create Wireless sensor network interfacing BLE module and Gas sensors WIPY
      Discussion • ble i2c sensor iot • • nobo23  

      2
      0
      Votes
      2
      Posts
      532
      Views

      dan

      Hi @nobo23 Are you trying to connect multiple sensors to the WiPy and communicate with them via Bluetooth? Connecting multiple BLE nodes to the WiPy is possible. You can find our BLE examples here. Hope this helps, let me know if you have any questions!
    • H

      Read the Sensor data through AWS cloud using WIPY
      Discussion • sensor wipy i2c database cloud • • harper75  

      4
      0
      Votes
      4
      Posts
      733
      Views

      C

      Hello. Recently I've been reading blog - pro4people.com and I have to admin that AWS cloud services got my attention. What ERP system would you recommend if we want to use amazon website services? Is it possible to use SAP on this network? Let me know please, since we are completely new to this subject.
    • pierrot10

      Which library work with DS18B20 water proof temperature sensor?
      LoPy • lopy4 sensor temperature ds18b20 onewire • • pierrot10  

      3
      0
      Votes
      3
      Posts
      948
      Views

      pierrot10

      @robert-hh Oh! thank, I missed it. Great I am happy to try it, this evening! Thank a lot!
    • V

      Current sensor 15A SCT-013
      LoPy • lopy sensor current • • Vicky_  

      28
      0
      Votes
      28
      Posts
      3619
      Views

      robert-hh

      @StefanoF I made a few more tests with the most recent code I have posted (which is the initial goertzel code). a) test for phase jitter. Instead of reading the ADC, i just supplied a artificial 50Hz sine with an amplitude of 50 and an offset of range/2 into the algorithm. Result: constant 49.99993, which means that there is no phase jitter. b) I connected the interface network, but not the sensor. Result: Output values between 0.005 and 0.03. Since the output value of 1Veff is about 240, that is equivalent of ~60µVeff, or about 1 mA through the sensor. c) connect a battery with 1.5V to the input. Result: values of about 0.5 -> Noisy battery! d) connect the SCT013 with no current. Value of 0.04 +/- 0.03. That's about 160µVeff of 3 mA (or 0.5 W at 230V) through the sensor. So it looks as if the sensor picks up some noise, but still ok. e) Using an external ADC (mcp3201). Result: values of 0.05. Slightly worse than using the internal ADC. Lesson learned: I will stick with the initial solution. The challenge is to proper shield the interface network and the cable from picking up unwanted noise.
    • joearkay

      LoPy + NPN Transistor + Ratiometric Sensor
      LoPy • sensor battery powered transistor npn ratiometric • • joearkay  

      6
      0
      Votes
      6
      Posts
      1237
      Views

      joearkay

      @robert-hh - Further to this - I actually haven't got the sensor to hand (awaiting shipment), but once it arrives, I'll measure the current draw at 3V3 to confirm that the datasheet is accurate.
    • R

      SPI Baudrate Limited to 10000
      WiPy 2&3 • spi sensor • • rm534  

      1
      0
      Votes
      1
      Posts
      632
      Views

      No one has replied

    • ledbelly2142

      VL6180X on LoPy I2C sensor driver
      LoPy • lopy i2c sensor • • ledbelly2142  

      13
      0
      Votes
      13
      Posts
      3731
      Views

      K

      @chumelnicu Hey, you can look it up here (scroll down) or try to transcribe the Adafruit library
    • J

      How to connect a LoPy to a moisture sensor?
      LoPy • lopy sensor moisture sensor sen0193 • • JeromeMaquoi  

      15
      1
      Votes
      15
      Posts
      4346
      Views

      R

      @robert-hh Thanks for your reply. I only have two sensors at hand now. No matter which one I use, it's ok. Since the principle is completely different. For the two sensors, do you familiar with them? Can you teach me some direction about how to program if you know. It's hard to find the same topic in the website and I am extremely confused now. Thanks! This is the image of the sensor, which provided by my supervisor.
    • J

      Reading analog voltage with ADC and attenuation
      LoPy • adc sensor attenuation • • jojo  

      9
      0
      Votes
      9
      Posts
      4115
      Views

      H

      the scale factor is Vcc / 5120 per 1 mm
    • 1
    • 2
    • 1 / 2