Skip to content

embassist/esp32c3-adc-motor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Firmware:

NOTE: keep comments on top of the code, removal seems to lead to

#[instability::unstable]
     |     ------------------------ private method defined here
  • clone esp-hal
  • replace embassy_hello_world.rs example with main.rs
  •   cargo xtask run-example esp-hal esp32c3 embassy_hello_world

Hardware:

  • esp32c3
  • IR photoresistor

Wiring:

  • IR+ -> esp pin4/5
  • IR- -> esp gnd

Values:

ADC IR values go about that:

  • bigger IR:

    • ~1700 on the table
    • ~1770 nicely covered with hand
    • ~2160 when the IR is missing (not wired)
    • ~1660 with phone lighter level 5 touching IR
  • smaller IR:

    • ~1960 on the table
    • slowly goes up to 3500 nicely covered with hand
    • ~2160 when the IR is missing (not wired)
    • ~1660 with phone lighter level 5 touching IR

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages