The first thing pictured in the PICAxe I2C tutorial is the need for 4k7 pull-up resistors on both SDA and SCL. These need to be added to your circuit.
I don’t have a PICAxe, never programmed one, but perhaps something close to the following might work
i2cslave $E0,i2cslow,i2cbyte ’ set up i2cslave for SRF08 default address E0, try slow to start
main:
writei2c 0,(81) ’ send command to pulse, return range in centimeters pause 10 ’ wait for SRF08, may not be needed readi2c 2,(b0, b1) ’ get range data back into 2 byte variables
debug w0 ’ should display b0 and b1 as word, centimeters
I think you should go buy a I think you should go buy a couple 4k7 resistors, as you need 2, not just one. Or at least find some none-working elelctronics to desolder some from.
Yes, the 10k resistors were already mentioned in this response to your previous inquiry. The problem with them is that they are tied to ground, not to +5, as is needed for I2C to operate.
Is there no bits of electronic junk laying around that might have these resistors on? A great robotic lawnmower is made in Israel. And I don’t know why Farnell Israel would have high shipping to Israel, since it’s already there. Avnet appears to be there too. Another might be Odem, and there might be a retail shop. There was mention of even a Radio Shack in Israel, but they may have closed since the company isn’t doing so well.