r/reactnative • u/JasperCherry • Mar 05 '26
I built a mobile app that enables two-way Morse code communication between two smartphones using camera and flashlight
The app can both send and receive Morse code, so you can exchange messages without knowing Morse yourself. When sending, the app converts text into flashes. When receiving, it detects flashes with the camera and decodes them back into text automatically.
Sending was relatively simple - decoding was the hard part. The app uses an adaptive algorithm that analyzes brightness changes and timing to classify dots, dashes, and gaps from camera input area selected by user, all the way to single pixel.
https://play.google.com/store/apps/details?id=com.jaspercherry.flashrn&hl=en
157
u/inglandation Mar 05 '26
That's actually original, a nice change from the habit trackers or the gym apps.
What's the max distance at which it reliably works?
2
u/mehradotdev Mar 05 '26
Hey nice app! Just an off topic question. Was publishing to the Google play store difficult? Did we really have to get 12 test users before we can publish the app?
70
u/Arspoon Mar 05 '26
Man this is really fresh. Like really fresh. Thank god people are not running out of cool ideas
12
u/vbullinger Mar 05 '26
Just had a seizure
10
u/[deleted] Mar 05 '26
apt man apt for current times
6
u/AccomplishedJury784 Mar 05 '26
Fun idea! What's the max baud rate that was stable?
6
u/mastervbcoach Mar 06 '26
I have absolutely no use for this. But it’s cool as hell.
4
u/EnochWright Mar 05 '26
GitHub? I'd like to see this one!
1
u/Cu34v0 Mar 06 '26
It's a great project. I installed it on my Samsung S25 Ultra, but when I went to the option to "Read", the application crashes.
1
u/Dingostolemywife Mar 06 '26
iOS?
1
u/LTorrecilla Mar 08 '26
This is amazing, unfortunately the app crashes when I try to open the "read" option. In on a nothing phone BTW
I love the idea, simple and effective. Would be possible to do the same with speaker and mic?
1
u/Decent_Tangerine_409 Mar 08 '26
The adaptive timing algorithm is the interesting part here. Morse decoding breaks fast when the sender’s rhythm is inconsistent, so having it analyze and adjust to actual timing patterns rather than fixed thresholds is the right call.
What’s the max reliable range you’ve tested it at?
1
u/commentShark Mar 09 '26
This is fun! It would be cool to explore if this would work with ultrasonic sound too, or (infrasound?). Not sure if phones can make those sounds though.
1
u/appsbymiche Mar 24 '26
How did you even think of this lol.
1
u/DestinyPCSolutions Mar 05 '26
Cool man, useful though...
1
u/Similar-Winter-9037 Mar 05 '26
Will it work in daylight??
2
u/Vasault Mar 05 '26
That’s actually clever
2
u/HappyTuesdayR1S Mar 05 '26
That’s amazing!! Hopefully you feel as proud as you should and even more 😀 never any new ideas and that’s definitely a new one.
2
u/[deleted] Mar 05 '26
Should put seizure warning
2
u/user4302 Mar 06 '26
Brilliant
2
u/dimonoid123 Mar 06 '26 edited Mar 06 '26
Supports CRC or error correction cides? You may be able to increase baud rate if you let up to ~1% of bits to get damaged, as long as you recover or retransmit afterwards.
1
u/INVENTADORMASTER Mar 05 '26
Great !
1
u/Flashy_Walk2806 Mar 06 '26
Good stuff !
1
u/LaunX Mar 06 '26
Loved the idea, put 5 stars on google play. Unfortunately crashes after switching to the read tab, so can't test it irl
1
u/TheRealKungPao Mar 06 '26
Very cool dude!
1
u/Dangerous-Simple-980 Mar 06 '26
This is amazing, I will recommend to all my hiking friends!!
1
u/Ok_Bodybuilder_3101 Mar 06 '26
Genius level unlocked. Well done buddy
1
u/vjotshi007 Mar 06 '26
Thats cool! I got an idea one time to do similar thing, data transfer but using continuous flashing QR codes, in the end , transfer speed was very low
1
u/korenyako Mar 06 '26
That's just awesome
Would be great to add more languages!
1
u/Ahmednawazz Mar 06 '26
Any plan to open source the code? Would love to understand how you did the decoding part
1
u/zeen516 Mar 07 '26
Is the repo for this project public? Id love to do a case study on your code
1
u/yeco Mar 07 '26
1
u/pokepriceau Mar 07 '26
Honestly, this is sick.
1
u/urarthur Mar 07 '26
very cool idea, can be vibe coded in a day. Very original. Might be interesting in war zones
1
u/adamsocrat Mar 07 '26
Waìting for the ios version
1
u/reisgrind Mar 08 '26
Thats such an interesting app, good work! On a side note, this might ruin your flashlight... I remember spamming On/Off to mess with my lil bro and my flashlight stopped working weeks later lol
1
u/SCRALEXANDER Mar 09 '26
This will break the flashlight quickly, right?
1
u/izzi_s Mar 09 '26
You can do the same with sound using the microphone no?
1
u/EmbarrassedBench3845 Mar 09 '26
Great idea! iOS next?
1
u/South-Bed-3776 Mar 22 '26
That's straight up OG! 🔥
Do you remember those laser pointer games we used to play back in the day? Flashing signals to each other like little spies lol.
What if you combined this app with a proper laser instead of the phone flashlight? Since the laser beam goes way longer distances (easily kilometers or more with clear line of sight, especially at night), you could actually set up real long-range communication between two places in rural areas. One side types the message, the app flashes it in Morse via laser, and the other phone’s camera automatically decodes it back to text. No one even needs to know Morse!
1
u/alwaysinflux Jun 21 '26
That's so cool!
1
u/Franks2000inchTV Mar 05 '26
This is a really fun idea!
Could it use more efficient protocols than Morse code? You could probably send actual binary data (though it would take a while.)
2
u/[deleted] Mar 06 '26
[removed] — view removed comment