Home Page Forums Raspberry Pi Shields Raspberry Pi NB-IoT Shield together with the Witty Pi 2?

This topic contains 8 replies, has 3 voices, and was last updated by  Saeed 3 weeks, 6 days ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #33154

    turbolego
    Participant

    Hi!

    I have the raspberry pi NB-IoT shield, and it works great!

    Now i want to make a “sandwich” with a raspberry pi 3 model b, the NB-IoT shield and the witty pi 2.

    The only issue i have, is that the physical pin #7 is used by both shields:

    NB-IoT schematic on the bottom of this page: https://sixfab.com/product/raspberry-pi-nb-iot-shield/
    WittyPi 2 schematic on page 32: http://www.uugear.com/doc/WittyPi2_UserManual.pdf

    The NB-IoT shield uses pin #7 for “1-Wire” while Witty pi 2 uses it to “detect the switching off signal”.

    It is possible to change the pin that the Witty pi 2 uses for this, but the guide they made does not work for me, and i’d rather not solder wires on the shields if i don’t have to.

    Guide: http://www.uugear.com/portfolio/change-the-pin-that-used-by-witty-pi/

    So, my question is, can the NB-IoT shield and Witty pi 2 work together sharing pin #7?

    Thanks!

    #33218

    Mahmut
    Keymaster

    Hi Turbolego,

    Normally no sensors are connected to pin7. There are only pull-up resistor.

    When I look at Witty-Pi, it has to go low to use this pin. In this case, I think you can use it directly like sandwich without making any changes.

    But I can not give a guarantee because it is not open schematics. The best way is to try.

    thanks.

    #33311

    turbolego
    Participant

    I changed the Witty Pi 2 pins used for “detect the switching off signal” and LED (GPIO 7 and 8) so that only the GPIO pin between the sixfab NB-IoT and Witty Pi 2 shields.

    Black arrows are used by witty pi 2:

    Diagram for both sixfab NB-IoT and witty pi 2

    I get this error when i run the IntermadiateTutorialNBIoT.py example:

    raise SerialException(“Could not configure port: %s” % msg)
    serial.serialutil.SerialException: Could not configure port: (5, ‘Input/output error’)

    Error message

    But all the other tests for the Relay, LED, Lux, Temperature, Humidity etc. works just fine!

    This is how boths shields look like when wired up with dupont wires 😛

    Dupont Wires lol

    Any suggestions?

    #33514

    Mahmut
    Keymaster

    Hello Turbolego, really sorry for delay.

    Photos do not appear. Please reload.

    #33659

    turbolego
    Participant

    Hi Mahmut!

    Is imgur blocked in your location?

    I have re-uploaded the pictures to my private webpage, here’s an alternative version:

    I changed the Witty Pi 2 pins used for “detect the switching off signal” and LED (GPIO 7 and 8) so that only the GPIO pin between the sixfab NB-IoT and Witty Pi 2 shields.

    Black arrows are used by witty pi 2:
    Diagram for both sixfab NB-IoT and witty pi 2

    I get this error when i run the IntermadiateTutorialNBIoT.py example:

    raise SerialException(“Could not configure port: %s” % msg)
    serial.serialutil.SerialException: Could not configure port: (5, ‘Input/output error’)

    Error message

    But all the other tests for the Relay, LED, Lux, Temperature, Humidity etc. works just fine!

    This is how boths shields look like when wired up with dupont wires 😛

    Dupont wires

    Any suggestions?

    • This reply was modified 4 weeks, 1 day ago by  turbolego. Reason: error in url
    #33667

    turbolego
    Participant

    Hi Mahmut!

    Is imgur blocked in your location?

    I have re-uploaded the pictures to my private webpage, here’s an alternative version:

    I changed the Witty Pi 2 pins used for “detect the switching off signal” and LED (GPIO 7 and 8) so that only the GPIO pin between the sixfab NB-IoT and Witty Pi 2 shields.

    Black arrows are used by witty pi 2:
    Diagram for both sixfab NB-IoT and witty pi 2

    I get this error when i run the IntermadiateTutorialNBIoT.py example:

    raise SerialException(“Could not configure port: %s” % msg)
    serial.serialutil.SerialException: Could not configure port: (5, ‘Input/output error’)

    Error message

    But all the other tests for the Relay, LED, Lux, Temperature, Humidity etc. works just fine!

    This is how boths shields look like when wired up with dupont wires 😛

    Dupont wires

    Any suggestions?

    • This reply was modified 4 weeks ago by  turbolego. Reason: seems like i have to try another host with https
    #33669

    Saeed
    Participant

    According to the IntermediateTutorialNBIoT.py script the port is
    port=’/dev/ttyS0′ which might not remain the same when witty pi 2 is connected to your R.Pi.
    Please crosscheck the port after making all connections.
    with regards.

    #33672

    turbolego
    Participant

    hm… i found this in the manual for witty pi 2:

    “If you are using Raspberry Pi 3, you will need to move the Bluetooth to mini-UART(ttyS0) and restore
    UART0/ttyAMA0 over GPIO 14 and 15. You can achieve this by adding “dtoverlay=pi3-miniuart-bt”
    to the “/boot/config.txt” file. You will also need to add “core_freq=250” to the “/boot/config.txt” file to
    make sure Bluetooth can work properly. Don‟t forget to reboot to let the changes take effect.”

    Page 34: http://www.uugear.com/doc/WittyPi2_UserManual.pdf

    Could this be the issue that is preventing the Sixfab NB-IoT shield from using ttyS0?
    Can i change from port=’/dev/ttyS0′ to port =’/dev/ttyAMA0′?

    #33700

    Saeed
    Participant

    Hey,
    Do you have disabled the getty service? To do so please follow step 8-12 from https://sixfab.com/getting-started-with-sixfab-raspberry-pi-nb-iot-shield/.
    Then try again.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.