Hello, internet
First of all I will put you in situation,
my project consists on making two PCBs controlled by an Attiny and powered by a micro lipo battery or a coin cell battery.
I need to be able to communicate between the tow boards, a simple, 3 bits message from each of them to the other.
The range needs to be around 0.5 / 1 meter and the method to be as cheap as possible, so I thought using infrared and create my own communication protocol so they are not emitting at the same time and thus avoid interference with the IR leds.
However I have had a lot of problems with the IR and this is the reason I am here to ask about it. I am still not decided by this communication system, so if someone has any other idea, I am open to try them.
For the part of IR I have had the following problems:
Testing a sensor modulated [VS1838r] I have not gotten what I wanted it to be, to get simple 1s and 0s.
This sensor only answered me only to rising edges and that made the logic of my communication protocol difficult for me to program, so I want to simplify this as much as possible before starting with the real coding.
I also thought about using a photodiode, however it only works when it is very very close to the emitter LED so it does not work for mi application. I have tried using a led driver without results, maybe I need to modulate it but i don't know how to or if it is even possible without making the project to difficult/expensive.
In this link [https://forum.arduino.cc/index.php?topic=596356.0] you can see all the details of my tests with the photodiode (second page) and with the vs1838r so that you can understand what I have been doing and how was I doing it.
Any ideas?
Thank you!
First of all I will put you in situation,
my project consists on making two PCBs controlled by an Attiny and powered by a micro lipo battery or a coin cell battery.
I need to be able to communicate between the tow boards, a simple, 3 bits message from each of them to the other.
The range needs to be around 0.5 / 1 meter and the method to be as cheap as possible, so I thought using infrared and create my own communication protocol so they are not emitting at the same time and thus avoid interference with the IR leds.
However I have had a lot of problems with the IR and this is the reason I am here to ask about it. I am still not decided by this communication system, so if someone has any other idea, I am open to try them.
For the part of IR I have had the following problems:
Testing a sensor modulated [VS1838r] I have not gotten what I wanted it to be, to get simple 1s and 0s.
This sensor only answered me only to rising edges and that made the logic of my communication protocol difficult for me to program, so I want to simplify this as much as possible before starting with the real coding.
I also thought about using a photodiode, however it only works when it is very very close to the emitter LED so it does not work for mi application. I have tried using a led driver without results, maybe I need to modulate it but i don't know how to or if it is even possible without making the project to difficult/expensive.
In this link [https://forum.arduino.cc/index.php?topic=596356.0] you can see all the details of my tests with the photodiode (second page) and with the vs1838r so that you can understand what I have been doing and how was I doing it.
Any ideas?
Thank you!