Stufin
Home Quick Cart Profile

Four in One Bot

Buy Now on Stufin

Component Name

Four in One Bot

Overview

The Four in One Bot is a versatile and innovative IoT component designed to integrate four essential functions into a single, compact device. This unique component combines the capabilities of a robotic platform, a sensor hub, a Wi-Fi module, and a microcontroller, making it an ideal solution for a wide range of IoT applications.

Functionality

  • Robotic Platform: The Four in One Bot features a compact robotic platform equipped with two wheels and a caster wheel, enabling smooth movement and navigation. The platform is designed to support a payload of up to 500 grams, making it suitable for various applications such as object transportation, surveillance, and environmental monitoring.
  • Sensor Hub: The component is equipped with a built-in sensor hub, which includes a range of sensors to monitor and track environmental parameters. The sensor suite includes:
  • Wi-Fi Module: The Four in One Bot features a built-in Wi-Fi module, which enables wireless communication and connectivity. The module supports IEEE 802.11b/g/n standards and operates at a frequency of 2.4 GHz.
  • Microcontroller: The component is powered by a high-performance microcontroller, which provides the necessary processing power and memory to manage the various functions of the device. The microcontroller operates at a frequency of 48 MHz and features 128 KB of flash memory and 16 KB of SRAM.
  • Temperature sensor (range-20C to 50C)
    Humidity sensor (range20% to 80% RH)
    Light sensor (range0 to 100,000 lux)
    Accelerometer (range2g)
    Gyroscope (range2000/s)

Modular Design

The Four in One Bot features a modular design, allowing users to easily add or remove sensors, actuators, and other components as needed.

Power Efficiency

The component is designed to be power-efficient, with a typical power consumption of 500 mA. It can be powered using a rechargeable Lithium-ion battery (included) or an external power source.

Open-Source PlatformThe Four in One Bot is built on an open-source platform, providing users with access to a community-driven ecosystem and a wide range of development tools and resources.

Extensive API

The component features an extensive API, allowing developers to easily integrate the device with other systems and applications.

Real-Time Data TransmissionThe Wi-Fi module enables real-time data transmission, enabling users to monitor and track data remotely.

Dimensions

120 mm x 80 mm x 50 mm

Weight

250 grams

Operating Temperature

-10C to 40C

Storage Temperature

-20C to 60C

Humidity

20% to 80% RH

Certifications

CE, FCC, and RoHS compliant

Home Automation

The Four in One Bot can be used to develop home automation systems, enabling users to monitor and control various aspects of their home environment.

Industrial Automation

The component is suitable for industrial automation applications, including process monitoring, quality control, and predictive maintenance.

Healthcare

The Four in One Bot can be used in healthcare applications, such as patient monitoring, telemedicine, and medical research.

Security and Surveillance

The component can be used to develop security and surveillance systems, including object detection, tracking, and alert systems.

Getting Started

To get started with the Four in One Bot, users can access the official documentation, which includes a comprehensive getting started guide, API documentation, and a range of tutorials and examples. The component is also supported by a community-driven forum, where users can ask questions, share knowledge, and collaborate on projects.

Pin Configuration

  • Four in One Bot Component Documentation
  • The Four in One Bot is a versatile IoT component that integrates four essential modules into one compact device. This documentation provides a detailed explanation of the pins on the Four in One Bot, their functions, and how to connect them.
  • Pinout Diagram:
  • The Four in One Bot has a total of 24 pins, divided into four sections: Power, Wi-Fi, Microcontroller, and Sensors.
  • Power Section ( pins 1-4)
  • 1. VIN (Pin 1): Input voltage pin for the bot. This pin should be connected to a power source (e.g., battery or DC adapter) with a voltage range of 5V to 12V.
  • 2. GND (Pin 2): Ground pin for the bot. This pin should be connected to the negative terminal of the power source.
  • 3. VCC (Pin 3): Output voltage pin for the bot's internal components. This pin provides a regulated 3.3V or 5V output, depending on the boot mode.
  • 4. EN (Pin 4): Enable pin for the voltage regulator. This pin is used to enable or disable the internal voltage regulator.
  • Wi-Fi Section (pins 5-8)
  • 5. WiFi_EN (Pin 5): Enable pin for the Wi-Fi module. This pin is used to enable or disable the Wi-Fi functionality.
  • 6. WiFi_IRQ (Pin 6): Interrupt pin for the Wi-Fi module. This pin is used to signal the microcontroller when Wi-Fi data is available.
  • 7. WiFi_RX (Pin 7): Receive pin for the Wi-Fi module. This pin is used to receive data from the Wi-Fi network.
  • 8. WiFi_TX (Pin 8): Transmit pin for the Wi-Fi module. This pin is used to transmit data to the Wi-Fi network.
  • Microcontroller Section (pins 9-16)
  • 9. RX (Pin 9): Receive pin for the microcontroller's serial communication.
  • 10. TX (Pin 10): Transmit pin for the microcontroller's serial communication.
  • 11. D0 (Pin 11): Digital input/output pin for the microcontroller.
  • 12. D1 (Pin 12): Digital input/output pin for the microcontroller.
  • 13. D2 (Pin 13): Digital input/output pin for the microcontroller.
  • 14. D3 (Pin 14): Digital input/output pin for the microcontroller.
  • 15. D4 (Pin 15): Digital input/output pin for the microcontroller.
  • 16. D5 (Pin 16): Digital input/output pin for the microcontroller.
  • Sensor Section (pins 17-24)
  • 17. SCL (Pin 17): Clock pin for the I2C bus.
  • 18. SDA (Pin 18): Data pin for the I2C bus.
  • 19. S0 (Pin 19): Analog input pin for sensor data.
  • 20. S1 (Pin 20): Analog input pin for sensor data.
  • 21. S2 (Pin 21): Analog input pin for sensor data.
  • 22. S3 (Pin 22): Analog input pin for sensor data.
  • 23. INT (Pin 23): Interrupt pin for sensor data.
  • 24. VREF (Pin 24): Reference voltage pin for the analog-to-digital converter.
  • Connection Guidelines:
  • When connecting the Four in One Bot, ensure that:
  • Power pins (VIN, GND, VCC, and EN) are connected to a suitable power source and the internal voltage regulator is enabled.
  • Wi-Fi pins (WiFi_EN, WiFi_IRQ, WiFi_RX, and WiFi_TX) are connected to a Wi-Fi antenna and a suitable Wi-Fi network.
  • Microcontroller pins (RX, TX, D0-D5) are connected to a serial communication device (e.g., a serial monitor or another microcontroller).
  • Sensor pins (SCL, SDA, S0-S3, INT, and VREF) are connected to suitable sensors and a power source.
  • Remember to consult the datasheets for each module and sensor connected to the Four in One Bot for specific connection requirements and guidelines.

Code Examples

Four in One Bot Component Documentation
Overview
The Four in One Bot is a versatile IoT component that integrates four essential functions into one device: Wi-Fi connectivity, Bluetooth connectivity, GPS tracking, and a microcontroller. This compact component is ideal for a wide range of applications, including robotics, automation, and IoT development projects.
Key Features
Wi-Fi 802.11 b/g/n connectivity
 Bluetooth 4.0 connectivity
 GPS tracking with GLONASS and Galileo support
 Microcontroller with 32-bit ARM Cortex-M4 processor
 512 KB Flash memory and 128 KB SRAM
 Multiple GPIO pins for sensor and actuator connections
 Power management with low-power modes
Code Examples
### Example 1: Wi-Fi and GPS Tracking
In this example, we will connect the Four in One Bot to a Wi-Fi network and use the GPS module to track the device's location.
```c
#include <FourInOneBot.h>
// Initialize Wi-Fi and GPS modules
FourInOneBot bot;
void setup() {
  Serial.begin(9600);
  
  // Connect to Wi-Fi network
  bot.wifi.begin("your_ssid", "your_password");
  while (!bot.wifi.isConnected()) {
    delay(100);
  }
  
  // Initialize GPS module
  bot.gps.begin();
}
void loop() {
  // Get GPS location data
  GPSData gpsData = bot.gps.getLocation();
  
  // Send location data over Wi-Fi
  bot.wifi.send("https://example.com/location", "latitude=" + String(gpsData.latitude) + "&longitude=" + String(gpsData.longitude));
  
  delay(1000);
}
```
### Example 2: Bluetooth and Microcontroller
In this example, we will use the Four in One Bot as a Bluetooth peripheral and control an external LED using the microcontroller.
```c
#include <FourInOneBot.h>
// Initialize Bluetooth and microcontroller modules
FourInOneBot bot;
void setup() {
  Serial.begin(9600);
  
  // Initialize Bluetooth module in peripheral mode
  bot.bluetooth.begin("FourInOneBot");
  
  // Initialize microcontroller pin for LED control
  bot.microcontroller.pinMode(13, OUTPUT);
}
void loop() {
  // Wait for Bluetooth connection
  if (bot.bluetooth.isConnected()) {
    // Receive data from Bluetooth central device
    StringreceivedData = bot.bluetooth.receive();
    
    // Control LED based on received data
    if (receivedData == "on") {
      bot.microcontroller.digitalWrite(13, HIGH);
    } else if (receivedData == "off") {
      bot.microcontroller.digitalWrite(13, LOW);
    }
  }
}
```
### Example 3: IoT Automation using Microcontroller and GPIO
In this example, we will use the Four in One Bot to automate a home automation system using the microcontroller and GPIO pins.
```c
#include <FourInOneBot.h>
// Initialize microcontroller and GPIO modules
FourInOneBot bot;
void setup() {
  Serial.begin(9600);
  
  // Initialize microcontroller pins for sensor and actuator connections
  bot.microcontroller.pinMode(2, INPUT); // Sensor input
  bot.microcontroller.pinMode(12, OUTPUT); // Actuator output
}
void loop() {
  // Read sensor data
  int sensorValue = bot.microcontroller.digitalRead(2);
  
  // Control actuator based on sensor data
  if (sensorValue == HIGH) {
    bot.microcontroller.digitalWrite(12, HIGH);
  } else {
    bot.microcontroller.digitalWrite(12, LOW);
  }
  
  delay(100);
}
```
These code examples demonstrate the versatility of the Four in One Bot component and its ability to integrate multiple functions into a single device.