IA / Robotics / IoT
My personal projects involve AI, robotics, Arduino and Raspberry Pi. They are a space for learning and experimentation, separate from my development and consulting services.
View demos ↘neoquarz@archetype:~$ profile
Web development and technical solutions.
I work on websites, applications and servers. I can help you fix a specific issue, improve an existing system or work out how to start a project.
Independent developer · Working with people and businesses
I work on web development and technical problem-solving. I start by understanding what you need and what is going wrong. Then we agree on the scope, review the options and work in stages.
Archetype is the name behind this space: an introduction to my work, the things I’m building and the technologies I’m studying.
My personal projects involve AI, robotics, Arduino and Raspberry Pi. They are a space for learning and experimentation, separate from my development and consulting services.
View demos ↘I draw to unwind and clear my head. I also enjoy creating stories and writing novels as a hobby. I share my drawings at @chemical__riot.
@chemical__riot ↗You can book a one-off review or agree on a development project with a defined scope. We review your situation first, then you receive a proposal with tasks, timing and cost.
A broken website, a slow system or a technical decision you need help with. I review the situation and provide a work plan.
Websites for professionals and businesses, service pages and enquiry forms. Design and development based on what you need to communicate.
Fixes and improvements for an existing website. We agree on the reviews, backups and support your site needs.
Small tools to organise requests, record information or reduce repetitive tasks. We start with the process that takes the most time.
Help publishing an application, configuring services and planning maintenance. Includes documentation of what was set up.
Try simple versions of what I’m building. There are service examples alongside a personal lab for AI, digital fabrication and electronics.
10 projects
A booking example for an independent professional.
A review checklist with priorities and progress.
Search sample documents and see the source of each result.
A small dashboard for services and incidents.
An adjustable rectangular base with STL export.
Resize and adjust an image in the browser.
A small brief that becomes a list of deliverables.
Reproducible export settings with FFmpeg.
Lighting and ventilation controlled by sensors and simple rules.
A two-joint model for testing positions.
A selection focused on development, systems and data. New additions are marked as learning; they do not represent established professional experience.
Frontend
Working stackFrontend
Working stackFrontend
Working stackFrontend
LearningFrontend
Working stackFrontend
LearningBackend
Working stackBackend
Working stackBackend
Working stackBackend
Working stackBackend
LearningData
LearningData
LearningData
LearningDevOps
Working stackDevOps
LearningDevOps
Working stackDevOps
Working stackDevOps
LearningQuality
LearningWeb
Working stackTools
Working stackEmbedded
Personal labEmbedded
Personal labEmbedded
Personal labIoT
LearningChoose an example to view it. This panel displays code; it is not a command terminal.
type Enquiry = {
name: string;
email: string;
message: string;
};
type Result =
| { ok: true; value: Enquiry }
| { ok: false; errors: string[] };
export function validateEnquiry(input: unknown): Result {
if (!input || typeof input !== 'object') {
return { ok: false, errors: ['Invalid payload'] };
}
const data = input as Record<string, unknown>;
const name = String(data.name ?? '').trim();
const email = String(data.email ?? '').trim().toLowerCase();
const message = String(data.message ?? '').trim();
const errors: string[] = [];
if (name.length < 2) errors.push('Name is too short');
if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) errors.push('Invalid email');
if (message.length < 20 || message.length > 2000) errors.push('Message must be 20–2000 characters');
return errors.length
? { ok: false, errors }
: { ok: true, value: { name, email, message } };
}use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
public function store(Request $request): JsonResponse
{
$key = 'enquiry:' . $request->ip();
if (RateLimiter::tooManyAttempts($key, 5)) {
return response()->json([
'message' => 'Try again in a few minutes.',
], 429);
}
$data = $request->validate([
'name' => ['required', 'string', 'min:2', 'max:100'],
'email' => ['required', 'email:rfc,dns', 'max:254'],
'message' => ['required', 'string', 'min:20', 'max:2000'],
]);
Enquiry::create($data);
RateLimiter::hit($key, 600);
return response()->json([
'message' => 'Enquiry received.',
], 201);
}constexpr byte relayPin = 9;
constexpr float turnOnAt = 27.0;
constexpr float turnOffAt = 25.5;
constexpr unsigned long sampleEveryMs = 2000;
bool fanOn = false;
unsigned long lastSample = 0;
void setFan(bool enabled) {
fanOn = enabled;
digitalWrite(relayPin, enabled ? HIGH : LOW);
}
void updateVentilation(float temperature) {
// Hysteresis avoids rapid relay switching near the threshold.
if (!fanOn && temperature >= turnOnAt) setFan(true);
if (fanOn && temperature <= turnOffAt) setFan(false);
}
void setup() {
pinMode(relayPin, OUTPUT);
setFan(false);
Serial.begin(115200);
}
void loop() {
if (millis() - lastSample < sampleEveryMs) return;
lastSample = millis();
float temperature = readTemperatureC(); // Sensor-specific function.
if (!isnan(temperature)) updateVentilation(temperature);
}from dataclasses import asdict, dataclass
from datetime import datetime, timezone
import json
@dataclass
class HomeState:
temperature_c: float
presence: bool
fan: bool
light: bool
def apply_rules(temperature_c: float, lux: int, presence: bool) -> HomeState:
fan = temperature_c >= 27.0
light = presence and lux < 180
return HomeState(temperature_c, presence, fan, light)
def mqtt_payload(state: HomeState) -> str:
payload = {
**asdict(state),
'source': 'raspberry-pi',
'recorded_at': datetime.now(timezone.utc).isoformat(),
}
return json.dumps(payload, separators=(',', ':'))
state = apply_rules(27.4, lux=90, presence=True)
client.publish('home/lab/state', mqtt_payload(state), qos=1)
Reference examples. They do not run from this page.
Tell me what you need to solve, what is already in place and what result you expect. That gives us a starting point.
contact@chemicalriotlab.com