I am not sure what I missing, but I have been trying to wire multiple maxbotix EZ1 devices on the same system, but so far not successful their readings are so unusable.
have anyone try to put multiple maxsonar maxbotix EZ1 devices on the same system? according to my research they should work fine with Sequentially Read method, read sensor 1, wait or 50ms read sensor 2, etc. but that clearly didnt work for me. I couldn’t get it run produce stable readings regardless whose driver I use MarkH’s, GHI’s.
I have not try the diasy chain method describe here yet. but why shouldnt it work with seq read?
public static int getSensorReading()
{
IDistanceSensor sensorC7 = new MaxBotixAnalogue((AnalogIn.Pin)FEZ_Pin.AnalogIn.An7, MaxBotixAnalogue.SupplyVoltage.FiveVolt);
IDistanceSensor sensorC6 = new MaxBotixAnalogue((AnalogIn.Pin)FEZ_Pin.AnalogIn.An6, MaxBotixAnalogue.SupplyVoltage.FiveVolt);
//FEZ_Components.Maxbotix sensorC7 = new FEZ_Components.Maxbotix(FEZ_Pin.AnalogIn.An7, FEZ_Components.Maxbotix.MaxbotixSensorType.LV_EZx_5V);
//FEZ_Components.Maxbotix sensorC6 = new FEZ_Components.Maxbotix(FEZ_Pin.AnalogIn.An6, FEZ_Components.Maxbotix.MaxbotixSensorType.LV_EZx_5V);
double left = 0;
double right = 0;
right = sensorC6.GetDistanceInCM();
sensorC6.Dispose();
Thread.Sleep(50); //interfere prevention
left = sensorC7.GetDistanceInCM();
sensorC7.Dispose();
the weird thing is if I have one sensor 1 hook up to An6 port it works just fine, but as soon as I plug the sensor 2 wire into An7 (even not being used) reading starts going banana