HC-SR04 (Qwiic) not working with Redboard Artemis Board

I am NOT able to get any data from the device:

!!! Wire.available() returns false “”"

Tried to post code in the code tags, but then I get 403 forbidden from the site !

Tried Posting code without the code tags: Also returns 403 forbidden from the site !

However, I used the Example code with I2C address 0x00.

Anyone? Sparkfun?

The example is simple, so for some one familiar with the hardware it’s probably a simple problem…

Have built a Car from Lego for my son, but it needs “eyes” to be self driving: The HC-SR04 was supposed to do this job…!

Please Help!

Hello Greig,

Thanks for getting back to me! I am not sure if I understand:

Have you got your QWIIC HC-SR04 board to work?

What was the solution?

If you have your code in a separate text file, you can upload it as an attachment!

Well, it is not the best idea to post several problems in one thread…

I suggest you re-post your question(s) in a new thread and delete your posts here , as I have linked to this URL to get answers to my problem!

Hi gos.

We try to respond to posts within 3 business days and Colorado was hit with a massive snow storm Monday and Tuesday last week causing delays in getting back to folks. SparkFun was also closed Thursday through Sunday for the Thanksgiving holiday weekend so we were unable to respond then. Monday was spent digging out from the backlog caused by last weeks storm and the holiday weekend so we were unable to respond until now.

I’ve tried the [example code that is provided in [this github link and it’s working for me on both an Arduino Uno and the Artemis ATP.

What are you seeing in the serial monitor? Does anything appear? You should at least be seeing “IIC testing…” when resetting the Artemis with the serial monitor open.](GitHub - ZIOCC/Zio-Qwiic-Ultrasonic-Distance-Sensor)](Zio-Qwiic-Ultrasonic-Distance-Sensor/Arduino/Zio_Ultrasonic_Distance_Sensor_IIC_Test (1) at master · ZIOCC/Zio-Qwiic-Ultrasonic-Distance-Sensor · GitHub)

Hello,

Thanks for getting back to me.

I think I have a faulty board.

I am experienced in hardware design and programming, but have very little experience with Arduino.

The program runs (yes I see “IIC testing…”), I have added several other print-statements to see the progress.

However, the “Wire.available()” statement always returns 0.

I2C address 0x00 is a broadcast address, so I have tested the board without any other boards on the I2C bus: But same result.

I have tried to change the Address from 0x00 to 0xFF in a loop, but “Wire.available()” always returns 0.

I also tried to change the “Measure Command” from 0x01 to 0xFF in a loop, but same result.

If I ever get the HC-SR04 to work with address 0x00, I guess I will have to change this address when I have other QWIIC equipment on the Bus? Is the code in Note 1 below supposed to be used to make a permanent change to the I2C address?

All other equipment works with the two Redboard Artemis CPU Boards that I have: One ATP and one “standard”.

Note1: Change the I2C address:

// Wire.beginTransmission(SLAVE_BROADCAST_ADDR); // transmit to device SLAVE_BROADCAST_ADDR

// int test = Wire.write(slave_address); // Change the SLAVE_ADDR

// Serial.println(test);

// Wire.endTransmission(); // stop transmitting

What’s your SparkFun order number Greig?

I purchased from your reseller Robot Gear here in Australia - but should that block my ability to post to the forums?

No, it shouldn’t block you from using the forums, but I’m not seeing your original post now. Another moderator may have deleted it since it’s not part of the original posters issue, I actually though you were the original poster when you replied.

In the future, please start a new thread if you don’t have the exact same issue as the original poster and your posts should be safe. :slight_smile:

If you feel you have a defective part, Robot Gear should be happy to assist you in getting that replaced.

I see others are posting similar issues with the DMX shield to the Github repo, but they’re not being responded to here, hence trying here. I’m not convinced it’s faulty hardware yet.

I only posted to this thread after I was unable to create my own and I added a “me too” to the OP’s issue, in the hope that when their problem was resolved I would see the outcome.

I’ve had a mail in to support@sparkfun for 24 hours waiting for some help resolving my issue posting to the forum. Creating a fresh account here still results in a 403 when I post. I’m hoping you’re not blocking my Australian IP address (currently 1.144.106.151).

Please feel free to cleanse my posts from this thread and I’ll wait for support to respond.

  • Greig.

Hello TS-Chris / Sparkfun,

I could of course return the unit, but it costs more than buying a new one…

My order number is: 4498429

Maybe Sparkfun could send me a new unit?

I’ll get you a new one gos. Don’t worry about sending the old one back. :slight_smile:

Replacement ticket # 21812 has been issued. A customer service representative will process the ticket and send a replacement part out free of charge using a similar shipping method you used for your original order. You should also receive an E-mail notification that the replacement is on the way. Please do not send your device(s) back