Shop OBEX P1 Docs P2 Docs Learn Events
BS1 and Sensiron Temperature/Humidity Sensor — Parallax Forums

BS1 and Sensiron Temperature/Humidity Sensor

Bill ChennaultBill Chennault Posts: 1,198
edited 2011-01-29 09:43 in BASIC Stamp
All--

I would like to use a BS1 with an SHT11 (Sensiron Temperature/Humidity Sensor). The Parallax demo code for the SHT11 uses SHIFTIN/SHIFTOUT. Is it possible to emulate these two instructions on a BS1?

Thanks!

--Bill

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-01-04 10:36
    Yes, you can emulate SHIFTIN and SHIFTOUT on a BS1. I don't recommend it because of the limited program space available.

    Look at the BS1 Application Notes (here). Example #2 shows how to interface to an ADC0831 which uses the equivalent of a SHIFTIN. Examples #22 and #23 show combined SHIFTIN / SHIFTOUT use where a command has to be sent to the sensor followed by receiving data.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2011-01-04 11:25
    Mike--

    I would like to make a smaller version of my just completed temperature/humidity datalogger. I have a USB BS1 laying around. The first thing I will check will be the code space.

    Thanks! Reading . . .

    --Bill
  • HumanoidoHumanoido Posts: 5,770
    edited 2011-01-29 09:35
    Bill:

    How did this project turn out?
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2011-01-29 09:43
    Humanoido--
    How did this project turn out?
    I have not pursued the BS1-driven Temperature/Humidity data logger. Except for an enclosure (on which I am waiting), I completed the BS2-driven project. I'll post more about it when the enclosure arrives.

    --Bill
Sign In or Register to comment.