- ✓ Answers to the most frequently asked questions
- ✓ Best practices for reliable IoT operation
- ✓ Security recommendations to protect your devices
- ✓ Power supply and wiring guidelines
- ✓ Sensor selection guide for different applications
- ✓ Troubleshooting quick reference
Frequently Asked Questions
General Questions
Q: Is OceanRemote free to use?
A: Yes! OceanRemote is completely free for personal and hobbyist use. There are no hidden fees, subscription costs, or limits on the number of devices. We believe IoT should be accessible to everyone.
Q: Do I need to open ports on my router?
A: No! OceanRemote uses a cloud-based architecture where your device connects OUTBOUND to our servers. No port forwarding, no static IP, no DDNS required. This makes setup simple and secure.
Q: What happens if the internet goes down?
A: Your device will continue running locally (relays stay in their last state, sensors continue reading), but you won't be able to control it remotely until the internet returns. The device automatically reconnects when service is restored.
Q: Can I control my devices from anywhere in the world?
A: Yes! As long as both your device and your phone/computer have internet access, you can control your OceanRemote devices from anywhere. No VPN or special setup required.
Q: Is my data secure?
A: Yes. OceanRemote uses token-based authentication, HTTPS for all communications, and devices are linked exclusively to your account. Secure v2 devices use permanent tokens bound to the device's MAC address.
Hardware Questions
Q: Which board should I buy as a beginner?
A: Get an ESP8266 D1 Mini. It's inexpensive ($3-5), well-documented, and powerful enough for most home automation projects. Once you're comfortable, you can upgrade to ESP32 or Pico W.
Q: What's the difference between ESP8266, ESP32, and Pico W?
A: ESP8266 is the budget option (10-bit ADC, 80KB RAM). ESP32 adds Bluetooth, dual-core, and 12-bit ADC (4x better resolution). Pico W has excellent 12-bit ADC and can run MicroPython. Choose based on your needs and budget.
Q: Can I use a 5V relay with a 3.3V board?
A: Yes! Most 5V relay modules have optocouplers that work perfectly with 3.3V logic signals. Just connect relay VCC to 5V (not 3.3V), and the control signals (IN pins) will work fine at 3.3V.
Q: How many relays can I connect?
A: OceanRemote supports up to 5 relays per device by default. You can connect more by modifying the firmware, but the dashboard is designed for 5. For more relays, create additional devices.
Q: Can I connect multiple DS18B20 sensors to one pin?
A: Yes! The DS18B20 uses a 1-Wire protocol that supports multiple sensors on the same data pin. Each sensor has a unique 64-bit address. OceanRemote currently reads only the first sensor, but you can modify the firmware to read all of them.
Sensor Questions
Q: DHT22 vs DS18B20 - which is better?
A: Choose DHT22 if you need humidity data. Choose DS18B20 for extreme temperatures (-55°C to +125°C), waterproof applications, or when you need multiple sensors on one pin. Both have similar temperature accuracy (±0.5°C).
Q: Why is my NTC reading inaccurate?
A: NTCs need calibration. Use the dashboard offset or adjust the Beta parameter in firmware generation. Also check your voltage divider circuit - R_series should match your temperature range (10kΩ for general use).
Q: My sensor reads -127°C or 85°C. What's wrong?
A: For DS18B20: -127°C usually means missing pull-up resistor (needs 4.7kΩ between DATA and 3.3V). 85°C is the power-on reset value - check your wiring. For DHT22: -999 means read failed - check wiring and pull-up resistor.
Software Questions
Q: Do I need to re-flash my device to change WiFi credentials?
A: Yes. WiFi credentials are stored in the firmware. To change them, generate new firmware from the dashboard with the new credentials and re-flash your device.
Q: How do I update my device firmware?
A: Generate new firmware from the dashboard (same process as first time) and flash it using Arduino IDE. Your device token remains the same (if you use the same device configuration).
Q: Can I use OceanRemote with Home Assistant or IFTTT?
A: OceanRemote has a REST API that can be integrated with Home Assistant, Node-RED, and other platforms. API documentation is available on the developer page.
Q: Why does my device show "Legacy" or "Legacy v1"?
A: Your device is using older firmware without secure token authentication. Click "Upgrade to Secure v2" in the dashboard to generate new firmware with improved security.
Troubleshooting Questions
Q: My device shows OFFLINE but has power. What do I do?
A: First, check Serial Monitor to see what's happening. Common causes: WiFi credentials wrong, 5GHz network (use 2.4GHz), weak signal, or token expired. See Tutorial 29 for detailed troubleshooting.
Q: My relay clicks but my device doesn't turn on.
A: Check your high-voltage wiring. The clicking sound confirms the relay coil is working. The problem is likely with COM/NO/NC connections or the load itself. Use a multimeter to test continuity.
Q: The relay is ON when I expect OFF (or vice versa).
A: Change the relay logic setting in your device dashboard. Positive Logic (HIGH=ON) vs Negative Logic (LOW=ON). Most cheap relay modules use Negative Logic.
Q: My ESP8266 won't upload. What's wrong?
A: Try holding the FLASH button while uploading. Also check: correct board selected, correct port, USB cable supports data (not charge-only), upload speed 115200 (slower is more reliable).
Q: My Pico W doesn't show up as a drive.
A: Hold BOOTSEL button while connecting USB. Keep holding for 5 seconds. If still not working, try a different USB cable (many are charge-only).
Best Practices
Hardware Best Practices
Software Best Practices
- Save your firmware code: Keep a copy of your generated firmware. You'll need it if you need to re-flash.
- Keep tokens private: Your device tokens are like passwords. Never share them online or in public repositories.
- Use Secure v2: Always upgrade legacy devices to Secure v2 for better security and session management.
- Calibrate sensors: Even factory-calibrated sensors benefit from offset calibration. Use ice water for accurate 0°C reference.
- Test before permanent install: Always test your device with a simple LED before connecting high-voltage equipment.
- Document your setup: Keep notes of which GPIO controls which relay, sensor types, and calibration offsets.
Security Best Practices
- Use a strong password: Your OceanRemote account password should be unique and complex.
- Enable 2FA if available: Two-factor authentication adds an extra layer of security.
- Regenerate tokens if compromised: If you suspect your token was leaked, regenerate it from the device dashboard.
- Keep firmware private: Your generated firmware contains your WiFi password and device token. Don't share it.
- Use a dedicated IoT network: Create a separate 2.4GHz guest network for your IoT devices.
- Update firmware regularly: Check for OceanRemote firmware updates to get security patches.
Sensor Selection Guide
| Application | Recommended Sensor | Reason |
|---|---|---|
| Room Temperature | DHT22 or DS18B20 | Both are accurate (±0.5°C). DHT22 adds humidity. |
| Humidity Monitoring | DHT22 | Only DHT22 measures humidity. Accuracy ±2%. |
| Freezer/Refrigerator | DS18B20 (waterproof) | Range down to -55°C, waterproof probe available. |
| Aquarium | DS18B20 waterproof | Submersible stainless steel probe. |
| Outdoor Weather | DS18B20 or DHT22 | Both work. Use radiation shield for direct sunlight. |
| Battery/Motor Temp | NTC 10kΩ | Fast response, small size, cheap. |
| Compost/Garden Soil | DS18B20 waterproof | Durable, can be buried, waterproof. |
| Fermentation/Brewing | DS18B20 waterproof | Submersible, accurate, wide range. |
| HVAC Duct | DS18B20 or NTC | Both handle high temperatures (DS18B20 to 125°C, NTC to 150°C). |
| Budget Project | NTC 10kΩ | $1-2 per sensor, good accuracy after calibration. |
Power Supply Quick Reference
| Setup | Minimum PSU | Recommended PSU |
|---|---|---|
| ESP8266 alone (no relays) | 5V 500mA | 5V 1A |
| ESP8266 + 2 relays | 5V 1A | 5V 1A |
| ESP8266 + 5 relays | 5V 1.5A | 5V 2A |
| ESP32 alone (no relays) | 5V 1A | 5V 2A |
| ESP32 + 5 relays | 5V 2A | 5V 2.5A |
| Pico W alone | 5V 500mA | 5V 1A |
| Pico W + 5 relays | 5V 1.5A | 5V 2A |
Always add 20-30% headroom to your power supply calculation. A 5V 2A supply costs the same as 1A but gives you room for expansion. Quality USB phone chargers work great!
Quick Troubleshooting Reference
- Check power (LED on?)
- Check Serial Monitor for errors
- Verify WiFi credentials (2.4GHz only)
- Move device closer to router
- Reboot router and device
- Re-flash firmware
- Check WiFi signal strength (RSSI)
- Move device closer to router
- Change WiFi channel (1,6,11)
- Check for interference
- Upgrade power supply
- Check VCC connected to 5V (not 3.3V)
- Check GND connection
- Test GPIO with LED first
- Check relay logic (Positive/Negative)
- Test IN pin by touching to GND (negative logic)
- DS18B20: Add 4.7kΩ pull-up resistor
- Check DATA pin connection
- Verify VCC is 3.3V or 5V
- Try a different GPIO pin
- Check for short circuits
- Hold FLASH button while uploading
- Lower upload speed to 115200
- Check port selection
- Try different USB cable
- Install CH340/CP2102 drivers
- Hold BOOT button until "Connecting..."
- Press EN/RST after upload starts
- Lower upload speed to 115200
- Check port selection
- Try different USB cable
- Hold BOOTSEL while connecting USB
- Hold for 5+ seconds
- Try different USB cable
- Check for "RPI-RP2" drive
- Manually copy UF2 file
- Use stronger power supply (2A+)
- Use better USB cable
- Add 470-1000μF capacitor
- Power relays separately
Glossary of Terms
Useful Resources
You've completed all 31 OceanRemote tutorials! You now have the knowledge to set up, configure, and troubleshoot your IoT devices. What will you build? A smart garden? A remote temperature monitor? An automated workshop? The possibilities are endless.
Remember: Start simple, test thoroughly, and scale up gradually. Happy building!