This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Light Frequency with ESP32 and Phyphox
#1
I'm new to the forum, so greetings to everyone. I'm a high school teacher who has been using Phyphox and its ability to connect sensors via Bluetooth for some time, so I'm very grateful to Sebastian Staacks and his colleagues at RWTH Aachen University, and to everyone who contributes to the forum.
 
I'd like to share an experiment that might be of interest to students studying the altern current.
With a lot of help (I don't know how to program in XML), I managed to get the code to display the brightness variations of light bulbs in Phyphox as a result of being connected to a 50 Hz altern current. The attached screenshot shows the brightness variations and how the time between 10 peaks is 0.10 s, which corresponds to a frequency of 100 Hz, as expected.
 
I'm using a phototransistor (for example, the TEMT6000) and an ESP32 board that sends data via Bluetooth. I've attached the sketch for the ESP32 and the XML file for uploading to Phyphox.

.phyphox   luz_frecuencia_alta.phyphox (Size: 3.36 KB / Downloads: 1)
     
.zip   sketch_luz_frecuencia_alta.zip (Size: 2.11 KB / Downloads: 1)
Reply
#2
(02-27-2026, 06:28 PM)Explliure Wrote:
I'm new to the forum, so greetings to everyone. I'm a high school teacher who has been using Phyphox and its ability to connect sensors via Bluetooth for some time, so I'm very grateful to Sebastian Staacks and his colleagues at RWTH Aachen University, and to everyone who contributes to the forum.
 
I'd like to share an experiment that might be of interest to students studying the altern current.
With a lot of help (I don't know how to program in XML), I managed to get the code to display the brightness variations of light bulbs in Phyphox as a result of being connected to a 50 Hz altern current. The attached screenshot shows the brightness variations and how the time between 10 peaks is 0.10 s, which corresponds to a frequency of 100 Hz, as expected.
 
I'm using a phototransistor (for example, the TEMT6000) and an ESP32 board that sends data via Bluetooth. I've attached the sketch for the ESP32 and the XML file for uploading to Phyphox.

 

Thank you for sharing your experiment, that does look interesting : )
Reply


Forum Jump: