Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How it goes when I play IoT

How it goes when I play IoT

Scheduled Pinned Locked Moved The Lounge
iot
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lmoelleb
    wrote on last edited by
    #1

    Let x be the number of IO pins required by your project. Let y be the number of IO pins available on your MCU. Step 1: x = y + 1 Step 2: Upgrade the MCU or add an IO Expander Step 3: Realize you can then add some cool functionality now you have more GPIO Step 4: Go to step 1

    C H C 3 Replies Last reply
    0
    • L lmoelleb

      Let x be the number of IO pins required by your project. Let y be the number of IO pins available on your MCU. Step 1: x = y + 1 Step 2: Upgrade the MCU or add an IO Expander Step 3: Realize you can then add some cool functionality now you have more GPIO Step 4: Go to step 1

      C Offline
      C Offline
      charlieg
      wrote on last edited by
      #2

      lol, truth. Otherwise known as scope creep :)

      Charlie Gilley “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759 Has never been more appropriate.

      1 Reply Last reply
      0
      • L lmoelleb

        Let x be the number of IO pins required by your project. Let y be the number of IO pins available on your MCU. Step 1: x = y + 1 Step 2: Upgrade the MCU or add an IO Expander Step 3: Realize you can then add some cool functionality now you have more GPIO Step 4: Go to step 1

        H Offline
        H Offline
        honey the codewitch
        wrote on last edited by
        #3

        I'm honestly not sure how people run out of pins, when realistically you can connect like 5 devices to an SPI or I2C bus before it collapses due to line capacitance. I use the ESP32 for the lion's share of my projects, because it's hard to find a 512kB MCU with a dual core 240mhz processor. It's a sweet spot that allows me to perform magic, like True Type fonts with it, which makes all the difference in the world when it comes to presenting a user interface. You don't really need all the sensors in the world to do cool stuff. You just need to lock down your scope. If you need to do more, you probably need another MCU - make another IoT device. If you're running ESP32s you can use ESP-NOW to create a wireless mesh network with up to like 20 devices on it. (Or you can use WiFi or bluetooth or BLE)

        To err is human. Fortune favors the monsters.

        L 1 Reply Last reply
        0
        • L lmoelleb

          Let x be the number of IO pins required by your project. Let y be the number of IO pins available on your MCU. Step 1: x = y + 1 Step 2: Upgrade the MCU or add an IO Expander Step 3: Realize you can then add some cool functionality now you have more GPIO Step 4: Go to step 1

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          :-D Just the same with the memory.

          "In testa che avete, Signor di Ceprano?" -- Rigoletto

          1 Reply Last reply
          0
          • H honey the codewitch

            I'm honestly not sure how people run out of pins, when realistically you can connect like 5 devices to an SPI or I2C bus before it collapses due to line capacitance. I use the ESP32 for the lion's share of my projects, because it's hard to find a 512kB MCU with a dual core 240mhz processor. It's a sweet spot that allows me to perform magic, like True Type fonts with it, which makes all the difference in the world when it comes to presenting a user interface. You don't really need all the sensors in the world to do cool stuff. You just need to lock down your scope. If you need to do more, you probably need another MCU - make another IoT device. If you're running ESP32s you can use ESP-NOW to create a wireless mesh network with up to like 20 devices on it. (Or you can use WiFi or bluetooth or BLE)

            To err is human. Fortune favors the monsters.

            L Offline
            L Offline
            lmoelleb
            wrote on last edited by
            #5

            Because as a hobbyist on a budget I have to stick to easily available devices. It does not help you can put more devices on the same bus if I can't easily source the devices for a single bus type. But yes, it looks like I have enough pins on the ESP32 - I started out assuming an ESP8266 would be more than enough, but once a SPI LCD eats a bunch of pins there isn't that much left (did not see any reasonable priced i2c transflective displays) :) Add an i2c for humidity, one-wire for temperature (in a "hostile" environment, so need a longer cable run to get the MCU out of there), rotary encoder, UART for reacting to a solar installation, a few relays, and a water level sensor or two - then it adds up.

            H 1 Reply Last reply
            0
            • L lmoelleb

              Because as a hobbyist on a budget I have to stick to easily available devices. It does not help you can put more devices on the same bus if I can't easily source the devices for a single bus type. But yes, it looks like I have enough pins on the ESP32 - I started out assuming an ESP8266 would be more than enough, but once a SPI LCD eats a bunch of pins there isn't that much left (did not see any reasonable priced i2c transflective displays) :) Add an i2c for humidity, one-wire for temperature (in a "hostile" environment, so need a longer cable run to get the MCU out of there), rotary encoder, UART for reacting to a solar installation, a few relays, and a water level sensor or two - then it adds up.

              H Offline
              H Offline
              honey the codewitch
              wrote on last edited by
              #6

              It certainly would on an ESP8266! Those are glorified bluetooth modules, more than MCUs.

              To err is human. Fortune favors the monsters.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups