Show Posts
Pages: [1] 2 3
1  Using Arduino / Sensors / Re: Honeyell HSC / SSC digital pressure sensor library on: March 07, 2013, 12:22:19 am
Created a google code project for this library: http://code.google.com/p/arduino-ssc/
2  Using Arduino / Sensors / Re: Honeyell HSC / SSC digital pressure sensor library on: March 05, 2013, 03:27:06 pm
The datasheets are there. Product page added.
3  Using Arduino / Sensors / Honeyell HSC / SSC digital pressure sensor library on: March 05, 2013, 06:40:23 am
A new library has been born! See http://playground.arduino.cc//Main/HoneywellTruStabilitySSC-HSCPressureSensors
4  Using Arduino / Networking, Protocols, and Devices / Re: Wire blocks when device is not powered on: March 04, 2013, 11:36:31 am
- set pin to input and  digitalWrite(pin, LOW): doesn't work
- set pin to input and  digitalWrite(pin, HIGH): doesn't work
- set pin to output and digitalWrite(pin, LOW): doesn't work
- remove connection to VDD: doesn't work
- remove connection to GND: this is the only thing that works

I guess I'll have to rethink my whole setup now smiley-sad
5  Using Arduino / Networking, Protocols, and Devices / Re: Wire blocks when device is not powered on: March 04, 2013, 10:29:51 am
Quote
Are you using the circuit in Fig 4 of the HIH6130 datasheet?
Yes, I'm using figure 4 (left side) in the datasheet.

Quote
If so are you also removing power from the pullup resistors and the LED?
1. If I use any pullups, it doesn't really matter, for testing I usually skip them (so I don't need t use a breadboard), for production they are there. In this case the result is the same.
2. There is no LED. In the datasheet the LED or whatever is there is to show the use of the alarm triggers. I'm currently not using them (that is pins 5 an 6 on the HIH).
3. I don't remove power from the pullups, the are wired directly to 3.3V on the arduino.

Quote
Also when you say "remove power" are you driving pin 10 LOW or making it an input?
I'm using: digitalWrite(X, LOW);
6  Using Arduino / Networking, Protocols, and Devices / Re: Wire blocks when device is not powered on: March 04, 2013, 09:39:27 am
See: http://playground.arduino.cc//Main/HoneywellHumidIconTMDigitalHumidity-TemperatureSensors
7  Using Arduino / Networking, Protocols, and Devices / Re: Wire blocks when device is not powered on: March 04, 2013, 08:17:24 am
Adding pullups (or not adding them) doesn't change the behaviour.
8  Using Arduino / Networking, Protocols, and Devices / Re: Wire blocks when device is not powered on: March 04, 2013, 07:01:18 am
I understand that, maybe I should have made my question clearer.

If I disconnect the device, it works: that is how an i2c sniffer works: run over all the addresses and see where you get an 'acknowledge'.

The specific device I'm using has address 0x27 (not that that matters), so why doesn't Wire even get past address 0x01?

Maybe it's in the implementation of the device itself? Or maybe I need to add some other components to make this work?
9  Using Arduino / Networking, Protocols, and Devices / Wire blocks when device is not powered on: March 04, 2013, 06:15:57 am
Situation:

Arduino, A4 and A5 connected to SCL and SDA of device, GND connected top GND of device, pin 10 connected to Vcc of device to power it up.

Sketch:

Code:
#include <Wire.h>

void setup() {
  Serial.begin(9600);
  //  make sure the device is not powered up
  digitalWrite(10, LOW);
  pinMode(10, OUTPUT);
}

void loop() {
  for(uint8_t i = 1; i < 120; ++i) {
    Serial.print(i);
    Serial.print(':');
    Wire.beginTransmission(i);
    Serial.println(Wire.endTransmission() == 0 ? 1 : 0);
  }
}

Output:

Code:
1:

Question:

Why doesn't this code work? Wire.endTransmission() never returns.
When I power up the device (using digitalWrite(10, HIGH)) it works as expected.
10  Using Arduino / Programming Questions / Re: A new library: Honeywell HumidIconTM Digital Humidity/Temperature Sensors on: March 04, 2013, 04:28:48 am
For anyone who's interested: A new and much improved version of the library is available:http://playground.arduino.cc//Main/HoneywellHumidIconTMDigitalHumidity-TemperatureSensors

and

https://code.google.com/p/arduino-hih61xx
11  Using Arduino / Sensors / Re: Honeywell HIH-6130 Humidity / Temperature Sensor on: February 25, 2013, 02:32:27 pm
Quote
is that right, we're working on the same time on the very same chip?
Apparently so, if I'd have known what you were doing, I wouldn't have started on this....

Quote
And I've, to admit you did the better Job, went the extra mile to implement all features smiley
Thanks a lot!

Quote
how do you enter the command mode exactly (within that 3/10ms)?
I have been wrestling with command mode for a couple of weeks, because I didn't know the voltage on the 3.3V pin on the arduino isn't cut when you reset the arduino (or isn't cut long enough). But then finally it hit me... So I just put a 3.3V voltage regulator on a digital pin to supply the chip (the datasheet says it can handle 5V, but I didn't want to fry the chip, so...).
So: digitalWrite(powerPin, HIGH); enables the chip
And: digitalWrite(powerPin, LOW); disables it
If you want to cycle the power do something like this:
Code:
digitalWrite(powerPin, HIGH);
//  HIH is enabled now, so let's cycle the power:
digitalWrite(powerPin, LOW);
delay(1); // this is the important part: give the chip the time to notice the power has been cut
digitalWrite(powerPin, HIGH);
I hope this answers your question because I've got no idea what a PCF8591 is or what role an A/D convertor could play here.

If you have any improvements to the code or anything... you're always welcome.
12  Using Arduino / Programming Questions / Re: A new library: Honeywell HumidIconTM Digital Humidity/Temperature Sensors on: February 25, 2013, 03:31:55 am
True, the pullups aren't really needed, everything works without them. I think Wire automatically enables the internal pullups.

They are there more for security: I read somewhere (but where?) that adding them is always a good idea.

I don't really know: I just started with electronics a couple of weeks ago, so maybe someone with some knowledge about this can shed some light...
13  Using Arduino / Programming Questions / Re: A new library: Honeywell HumidIconTM Digital Humidity/Temperature Sensors on: February 25, 2013, 02:31:05 am
I just went ahead and used approach 2.
I created a wiki page for the library: http://playground.arduino.cc//Main/HoneywellHumidIconTMDigitalHumidity-TemperatureSensors.
Any comments or suggestions (or bugreports) are always welcome.
14  Using Arduino / Programming Questions / Re: A new library: Honeywell HumidIconTM Digital Humidity/Temperature Sensors on: February 24, 2013, 10:53:31 am
I've been thinking a bit about how to extend this library.
I need to implement some functions:

Code:
//  the I2C address of the device
uint8_t address() const;

//  the ON trip point for the high alarm
float highAlarmOn() const;

//  the OFF trip point for the high alarm
float highAlarmOff() const;

//  the POLARITY of the high alarm (ActiveLow or ActiveHigh)
AlarmPolarity highAlarmPolarity() const;

//  the OUTPUT CONFIG of the high alarm (PushPull or OpenDrain)
AlarmOuputConfig highAlarmOutputConfig() const;

//  and so on....
//  and of course also setter function for all these properties


I believe I have 2 options:

1. implement each function independantly from all the others:
    eg: - get high alarm trip point: get the data from eeprom, convert it to float...
         - set high alarm trip point: put the data into eeprom, check for errors, power down the device, power up the device, ...
2. - in the start() function: read the 14 bytes of eeprom data and store in a member variable -> this data can now be used (read) wherever/whenever you want
    - in the get ... functions: return data from the member variable
    - in the set ... functions: update the member variable, set a flag indicating that eeprom needs to be updated
    - create an updateEEPROM() function to update the 14 bytes of data at once

What would be the best approach???
15  Using Arduino / Sensors / Re: Honeywell HIH6131 How to enter command mode? on: February 24, 2013, 09:13:10 am
This thread is starting to get a bit chopped up. Anything else, I will post in: http://arduino.cc/forum/index.php/topic,150584.0.html
Pages: [1] 2 3