Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You should be greeted with a bunch of installs- and this sets up the ESP32 specific tooling. In order for these changes to be recognized, you should deactivate and then reactivate the ner-venv. Also note, you may see some things “error”, but the install continues. This is generally okay, so feel free to ignore.

Info

Only if on Windows:
Unfortunately, Windows users need to manually install a driver to allow UART to USB comms. Go to this pagehttps://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads

1. Donwload the Windows Universal Driver

  1. Unzip the file

  2. Right click on the unzipped file called “silabser.inf”, and click install

  3. Follow the prompts

You'll need to then clone the launchpad repo - place it in the same NER folder described in the setup.

...

  • The hall sensor normally would need to be calibrated to account for the ambient magnetic field in your environment. Doing so is out of scope of this task, so don’t worry about it too much, just try to set it up so that the light does not blink much at the reading level it gets without the magnet nearby. Depending on your environment, this might be at different reading values. All apps have the same ADC resolution, but you may read stronger or weaker fields, which is okay. Regardless, the strength should increase as the magnet gets closer. To test this, you may want to simply guess and check - you should incorporate some sort of “offset” ADC value, where the LED barely blinks if the reading is as low as you record when no magnet is nearby. Also, it doesn't need to be extremely precise. Maybe you only have 2 or 3 blink speeds for strength ranges - this doesn't need to be a continuous and fine grained speed increase for every tiny change in field strength

  • When Using multiple threads like in an RTOS application, data atomicity is important. If a piece of data is accessed from multiple threads, it is important to use a locking mechanism, like a mutex or semaphore, to make sure that sharing this data is done safely

  • Id suggest getting the bluetooth working first. That way, you can monitor the adc value in real time as you try to get the blinking mechanism working

  • (POSSIBLE BUILD ERROR THAT ISN’T YOUR FAULT)
    When building, if you get this error:

    Code Block
    platformio run --target menuconfig

...