hello hello , this time i'm in deep trouble i think , according to this link https://www.avrfreaks.net/forum/r... i cannot use max488 for a multi slave communication ( i need all of the slaves to be able to respond ) ,
things to note :
1- using 5 atmega 128 , 16 MHz , baud 9600 as Slaves
2- RPi B3 , acting as the master , & control the bus .
3- a bus consisted of 6 nodes ( 5 slaves - 1 master )
4- all slaves TX are going to the Pi RX and the TX of the PI going for all of the Slaves RX pin ( meaning the slaves are listening only to the Pi)
5- the communication with one atmega is good , but i notice some bytes come after my packet , i dont know if it's noise or max488 fault .
6- the bytes seems to be after each packet sent from slave to master .but it's not affecting the SW .
case at which the bus fail :
when there are 2 or more slaves are connected to the bus , there are only one who is able to respond , they all take orders from the pi & correctly served in each slave .
the problem arise when there is data to be sent from a slave to the master , complete noise , i print the data which i receive and they are all noise .
but again , there are only one slave who is abl to communicate while the others cannot .
i made bus out of PCB so i save wires and getting confused , so it would be a huge loss if there is no solution to this problem . i know that i made i mistake :D i should've used max485 that has a DE pin .