• .py .mpy python cache?

    Discussion wipy oem upgrade
    5
    1 Votes
    5 Posts
    762 Views
    T
    @robert-hh ah yes, exactly, in the 16 second time of startup i read some file: planning.txt for see if startup is needed for the device, wifi_name.txt for the device SSID etc... Not all for the code loading!
  • WIPY OEM antenna EXT or INT?

    Discussion wipy oem wifi antenna
    6
    0 Votes
    6 Posts
    852 Views
    robert-hhR
    @thibault The antenna selection does not matter at all, because the W01 has just one antenna port which will used in any case.
  • 0 Votes
    3 Posts
    891 Views
    robert-hhR
    @fedesilvi Just to give you an impression how bad the esp32 ADC is, I collected 10000 samples with the ESP32 ADC and an ADS7818 ADC taking values the same LM385 voltage reference. The absolute values differ, because of the different ranges (5V vs. 3.3V). The histograms are below: [image: 1538763982782-data_a7818.jpg] [image: 1538764779096-data_esp32.jpg] Edit: Adding a 10 nF capacitor close to the ESP32 ADC input and switching off WiFi improved the picture. The one above was WITH the capacitor. Without, the capacitor, it was worse (avg +/-100 readings)
  • UART Pins for Pytrack with WiPy3

    WiPy 2&3 uart wipy pytrack pin
    7
    0 Votes
    7 Posts
    588 Views
    E
    @soopieng said in UART Pins for Pytrack with WiPy3: @Erick-Falcon Hi, I am looking for similar solution as well. May I know what do you mean on making a shield on your solution? I am planning to use FiPy on Pytrack, and i need I2C and UART features from FiPy as well. There is a external IO header on Pytrack board, with some GPIO pins and power signal available. Can we configure one pair of the GPIO as UART for my purpose? or the external IO header is used for other application? hi, I new using these devices. I´ve been work with this around three months. when I said "make a shied" I mean make a pcb what allow you to use fipy, pytrack and sensors, without need to solder extra pins on pytrack. I am testing to see how viable and efficient this solution is.
  • pycom wipy pysense problem

    WiPy 2&3 pycom wipy file transfer atom
    7
    0 Votes
    7 Posts
    870 Views
    P
    @dan I finally made it work! But only because of your advice! Thank you so much!!!
  • WiPy ADC

    Discussion wipy adc pin
    5
    0 Votes
    5 Posts
    1k Views
    robert-hhR
    @b_rubble Here is a sample script using the ADS7818 with SPI: # Drive the ADS7818 ADC using SPI # Connections: # xxPy | ADS7818 # -----|------- # P10 | CLK # P11 | CONV # P14 | DATA # from machine import SPI, Pin from ubinascii import hexlify spi = SPI(0, SPI.MASTER, baudrate=4000000, polarity=1, phase=1, bits=16) buf = bytearray(2) vref = 2.493 # measured at the ADS7818 while True: # start a conversion and get the result back spi.write_readinto(b"\xe0\x00", buf) # extract the raw ADC value and derive Voltage value = ((buf[0] << 8) | buf[1]) & 0xfff volt = 2.0 * vref * value / 4096 print(hexlify(buf), value, volt) res= input("Next: ") if res == "q": break The conversion and reading back is done within the single spi.write_readinto() call. It is then easy to embed that in a small class. Note: Since the ADS7818 runs at 5V, insert a resistor of 3.3k to 10k into the data line back into the ESP32 to limit the current into the ESD diodes.
  • pycom and anaconda

    WiPy 2&3 pycom console pycom wipy wipy 3.0 connect
    3
    0 Votes
    3 Posts
    746 Views
    M
    Hi! You can use this command line tool: https://hackmd.io/s/HJhUcamxQ#
  • Python Interface

    Comments & Feedback wipy3.0 wipy 2 wipy interface connect
    4
    0 Votes
    4 Posts
    1k Views
    P
    @fedesilvi I recommend you try PySimpleGUI It's much easier to program a GUI in PySimpleGUI than PyGame. Do you have tkinter on your platform? You should be able to hook up your GUI to anything you want. To display your information, read the data using your code, then plot the data using a Matplotlib / Pyplot call. You can then display that graph in your GUI. There is extensive documentation on how to use it and there are several example programs posted the demonstrate hooking it up to Matplotlib.
  • WiPy Vbatt input pin

    WiPy 2&3 wipy
    1
    0 Votes
    1 Posts
    399 Views
    No one has replied
  • 0 Votes
    8 Posts
    2k Views
    robert-hhR
    @moewex The 4095 is the highest value of the 12 bit ADC. So you could try to call apin.value() instead of just apin, which seems to return the voltage value, which has to be calibrated beforehand. The noise and fluctuation will always be large. So you have to add some kind of lowpass or averaging. For the moisture application with ist slow change, using a digital lowpass filter/averaging is surely appicable. And you do not have to care for absolute precision, just consistency.
  • OTA updates, bootloader?

    Firmware wipy
    2
    0 Votes
    2 Posts
    631 Views
    danD
    Hi @johand, You probably won't have to update the bootloader, unless there's some bug or the OTA mechanism changes. We have no features planned for the bootloader at the moment, so you should be fine with OTA updates.
  • WiPy broadcasts AP when in STA mode

    Issues & Bugs wipy wlan wifi ap mode sta mode
    3
    0 Votes
    3 Posts
    654 Views
    H
    @jcaron Thank you very much for your reply. Turning off WiFi on boot seems to fix the issue. Apparently it was related to the PyCom starting in AP mode for telnet.
  • Bluetooth device name unable to resolve in Pycom

    Discussion wipy wipy 2.0
    3
    0 Votes
    3 Posts
    711 Views
    N
    Using manufacturer data, we can get the proper data from the sensor. mfg_data = bluetooth.resolve_adv_data(adv.data, Bluetooth.ADV_MANUFACTURER_DATA) advData = binascii.hexlify(mfg_data)
  • Problem with SD Card in Pysense

    Firmware wipy other
    2
    0 Votes
    2 Posts
    569 Views
    robert-hhR
    @ghelbig The latest firmware release is 1.18.0.r1. Try to update first. Then try to reset the device after the card was inserted. That help sometimes. If not, try a different, maybe smaller card.
  • Storing certificates on WIPY

    Discussion wipy certificate flash
    1
    0 Votes
    1 Posts
    409 Views
    No one has replied
  • WiPY & Bluetooth & Internet

    WiPy 2&3 wipy bluetooh internet
    2
    0 Votes
    2 Posts
    638 Views
    E
    @Tschili take a look at https://docs.pycom.io is full of examples. The bluetooth paring needs for you to create a server on Wipy, but usually you may want more than a simple paring. About the: Send data over the mobile phone to internet (webserver) I don't think that this forum is the adequate for mobile apps questions, but if you mean communicating to Wipy using wifi, for sure you will find and example on the documentation.
  • 0 Votes
    2 Posts
    486 Views
    M
    For starters, you could use the Pysense board (which has a light sensor and a basic driver) and the AWS example to push the data to AWS IoT. This should work out of the box. What you do in AWS IoT is another topic.
  • Wipy 3 irregularly crashes after deepsleep

    Issues & Bugs wipy deepsleep crash
    3
    1 Votes
    3 Posts
    755 Views
    M
    As of last week, I cannot reproduce the error anymore... . If I encounter the issue again, I will write here again.
  • 0 Votes
    2 Posts
    540 Views
    robert-hhR
    @nobo23 Accirdoig to the datasheet, you can operate that device from the 3.3V output of the WiPy. That matches the signal levels of the I2C interface. Since the module has built-in pull-up resistors (if you install the jumpers), you do not have to add additional ones.