Art project: it provides you new senses you’ve never felt before

88F242F8-EC60-472C-BCB3-2117513008A8.jpeg

Concept

6th 7th sense is a human augmentation device for augmenting two new sense: photosynthesis and bug’s antenna.

Bug’s antenna allows us to feel around you in addition to your sight.

The device detect objects’ approaching behind you.

Also the power source is coming from solar power which stands for photosynthesis of plants.

I would like to use two same ultrasonic sensor called SRF02.

So I need to change the I2C address of the sensor to detect each value.

Here is the code for changing the I2C address of SRF02

// SRF02のアドレスを変更

#include <Wire.h>

byte original_address = 224;  // 変更前のアドレス: 0xE0
byte new_address = 226;       // 変更後のアドレス: 0xE2

void setup() {
  Wire.begin();
  Serial.begin(9600);

  Serial.println("Change address begin ...");

  byte original_i2c_address = original_address >> 1;
  Wire.beginTransmission(original_i2c_address);
  Wire.write(0x00);
  Wire.write(0xA0);
  Wire.endTransmission();

  Wire.beginTransmission(original_i2c_address);
  Wire.write(0x00);
  Wire.write(0xAA);
  Wire.endTransmission();

  Wire.beginTransmission(original_i2c_address);
  Wire.write(0x00);
  Wire.write(0xA5);
  Wire.endTransmission();

  Wire.beginTransmission(original_i2c_address);
  Wire.write(0x00);
  Wire.write(new_address);
  Wire.endTransmission();
  Serial.println("Change address finish!");
}

void loop() {
}

And I checked the each address with i2c_scanner which is an example sketch in Arduino.

You can find it on Example > Wire > i2c_scanner

Untitled