Menu
Microbots
0
  • Learn
    • Getting Started
    • Maker Builds
    • Education
  • Shop
    • Modules & Parts
    • Tools & Gears
    • Robots & Displays
  • About
    • Our Story
    • Reach Out
    • FAQs
  • Sign in
  • English
  • Your Cart is Empty
Microbots
  • Learn
    • Getting Started
    • Maker Builds
    • Education
  • Shop
    • Modules & Parts
    • Tools & Gears
    • Robots & Displays
  • About
    • Our Story
    • Reach Out
    • FAQs
  • Language

  • 0 0

CodeCell - Going to Sleep

CodeCell supports low-power sleep with timer or sensor wakeups. Sleep current differs by board, so pick the right mode for your use case.

Sleep Current by Board

Board Approx. Sleep Current Typical Wake Sources
CodeCell C3 Light ≈ 476 µA Timer
CodeCell C3 ≈ 861 µA Timer 
CodeCell C6 ≈ 40 µA (timer) · ≈ 200–425 µA (light / prox) Timer / Light / Proximity
CodeCell C6 Drive ≈ 40 µA (timer) · ≈ 200–425 µA (light / prox) Timer / Light / Proximity

 

All official sleep examples are in the repo: examples/Sleep

Sleep Examples (Quick Navigator)

  • 1) Tap Interrupt Wakeup — C6 / C6 Drive
    Sleep on command, wake on a tap from the BNO085. On wake, show a brief LED indication.
    tap_interrupt_wakeup.ino · Est. sleep ≈ 200 µA (C6)

  • 2) Brightness Interrupt Wakeup — C6 / C6 Drive
    Wake when light rises above a threshold. Triggers alarm (LED red + DriveCell tone) until silenced.
    brightness_interrupt_wakeup.ino · Est. sleep ≈ 280 µA (C6)

  • 3) Proximity + Timer + EEPROM Wakeup — C3 / C3 Light / C6 / C6 Drive
    Save a proximity baseline to EEPROM, enter timed sleep, and re-check on wake. Alarm when delta exceeds range.
    proximity_timer_eep_wakeup.ino · Est. sleep ≈ 40 µA (C6) · 476 µA (C3 Light) · 861 µA (C3)

  • 4) Darkness Interrupt Wakeup — C6 / C6 Drive
    Wake when light falls below a threshold (dark event). Triggers alarm until user disables.
    darkness_interrupt_wakeup.ino · Est. sleep ≈ 280 µA (C6)

  • 5) Motion (RTC Timer Poll) Wakeup — C3 / C3 Light / C6 / C6 Drive
    Use RTC timer to wake periodically, sample motion state, trigger alarm if movement detected; otherwise return to sleep.
    motion_timer_wakeup (folder) · Est. sleep ≈ 40 µA (C6) · 861 µA (C3)

  • 6) Proximity Interrupt Wakeup — C6 / C6 Drive
    Wake when proximity crosses a threshold. Triggers alarm (LED red + DriveCell tone) until silenced in the app.
    proximity_interrupt_wakeup.ino · Est. sleep ≈ 425 µA (C6)

Choosing a Strategy

  • Lowest draw: Use timer sleep on C6/C6 Drive (~40 µA) and wake up every few seconds to poll sensors.
  • Responsive UX: Use interrupt wake (tap / light / proximity) on C6 for instant triggers.

Explore these sketches here: CodeCell / examples / Sleep.

  • Share:

Follow

Github

  • About
  • Software
  • Education
  • Contact
  • FAQs
  • Terms
  • Refund Policy
  • Privacy Policy

Join our Community ~ Be the first to know about new products and get exciting deals!

© 2025 Microbots.