GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe Arducam Mega is an SPI camera: it captures and compresses the image to JPEG itself, then lets the board read the bytes over SPI. That means any board with SPI can take photos, without a camera connector or lots of memory. The ESP32 runs a small web server; each visit to /photo captures a JPEG and streams it to the browser in chunks.
Do not point cameras at neighbours' property or private spaces.
Tick anything you already have and the total updates.
Arducam Mega 3MP SPI camera with case
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V USB supply.
snapshot_cam.inoVerify & upload in Electrolark#include <WiFi.h>
#include <WebServer.h>
#include <Arducam_Mega.h>
Arducam_Mega cam(17);
WebServer web(80);
uint8_t buf[1024];
void photo() {
cam.takePicture(CAM_IMAGE_MODE_HD, CAM_IMAGE_PIX_FMT_JPG);
uint32_t len = cam.getTotalLength();
WiFiClient c = web.client();
c.printf("HTTP/1.1 200 OK\r\nContent-Type: image/jpeg\r\nContent-Length: %u\r\n\r\n", len);
while (len) {
uint32_t n = cam.readBuff(buf, min((uint32_t)sizeof(buf), len));
c.write(buf, n); len -= n;
}
}
void setup() {
Serial.begin(115200);
cam.begin();
WiFi.begin("YOUR_WIFI", "YOUR_PASSWORD");
while (WiFi.status() != WL_CONNECTED) delay(300);
Serial.print("Open http://"); Serial.print(WiFi.localIP()); Serial.println("/photo");
web.on("/photo", photo); web.begin();
}
void loop() { web.handleClient(); }
SPI wires too long; keep them under 15 cm.
Check CS on GPIO17 and the 3.3 V supply.
Use a smaller image mode; HD takes a second or two to transfer.
It frees the ESP32 from image processing and works on boards without a camera port.
Only a few frames a second; for video use an ESP32-CAM or a Pi camera.
Yes, write the same bytes to a file instead of the web client.
5 parts: Arducam B400 Mega 3MP SPI Camera Module w/ Case, ESP32-WROOM-32 38-Pin Development Board, Official Raspberry Pi 4 USB-C Power Supply – 15.3W, Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (snapshot_cam.ino).
About ₹3,504 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How an SPI camera hands over a JPEG; Streaming a file from a web server; Choosing image resolution.
Do not point cameras at neighbours' property or private spaces.
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Records where you went every five seconds, ready to open on a map.
Two boards, two radios: press the button at the gate and it rings indoors.
Check temperature, humidity and pressure from any phone on your Wi-Fi.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.