602
edits
Line 70: | Line 70: | ||
[[File:3_base_con.png | 540px]] | [[File:3_base_con.png | 540px]] | ||
Three bulbs base were connected to arduino to test different temperatures given by different types of tungsten assembled cables, some were giving numbers from 200 to 400 and others from 500 to 800. This was displayed in the code as the frequency of sound within the speakers. | Three bulbs base were connected to arduino to test different temperatures given by different types of tungsten assembled cables, some were giving numbers from 200 to 400 and others from 500 to 800. This was displayed in the code as the frequency of sound within the speakers. By debugging the code and using the "map" function, the analysis of temperature can be clearer and more precise to a thermometer measurement. | ||
The code was giving some troubles because each one of the speakers connected to the sensor had to have a "tone();" and "noTone();" so each sound would respect the other. Multiple speakers were then connected and working, each one of them reacting to their own sensor. | The code was giving some troubles because each one of the speakers connected to the sensor had to have a "tone();" and "noTone();" so each sound would respect the other. Multiple speakers were then connected and working, each one of them reacting to their own sensor. |
edits