Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•
YouTube Security VideosNeil Patel: The 3-Search Test For Your Business #shorts(24.09.2026 um 20:04 Uhr)
•
YouTube Security VideosLinus Tech Tips: The One Apple Product I Fanboy Over(24.09.2026 um 20:18 Uhr)
•
YouTube Security VideosMicrosoft Mechanics: One Prompt Builds Your Copilot Agent(24.09.2026 um 20:15 Uhr)
••
Sichere ProgrammierungAI-powered fuzzing with the GitHub Security Lab Taskflow Agent(24.09.2026 um 20:26 Uhr)
•••
Sichere ProgrammierungBuilt an Agentic Fraud Investigator using(24.09.2026 um 20:15 Uhr)
•
Sichere ProgrammierungBuilding a fraud investigator that argues with itself(24.09.2026 um 20:15 Uhr)
••
YouTube Security VideosNeil Patel: The 3-Search Test For Your Business #shorts(24.09.2026 um 20:04 Uhr)
•
YouTube Security VideosLinus Tech Tips: The One Apple Product I Fanboy Over(24.09.2026 um 20:18 Uhr)
•
YouTube Security VideosMicrosoft Mechanics: One Prompt Builds Your Copilot Agent(24.09.2026 um 20:15 Uhr)
••
Sichere ProgrammierungAI-powered fuzzing with the GitHub Security Lab Taskflow Agent(24.09.2026 um 20:26 Uhr)
•••
Sichere ProgrammierungBuilt an Agentic Fraud Investigator using(24.09.2026 um 20:15 Uhr)
•
Sichere ProgrammierungBuilding a fraud investigator that argues with itself(24.09.2026 um 20:15 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

How to activate simple electronics with a Raspberry Pi?

Here’s a clear, no-nonsense path to make a Raspberry Pi control and read simple electronics—safely. Golden rules (so you don’t fry the Pi) GPIO is 3.3 V only. Never put 5 V on a GPIO pin. Per-pin current is tiny. Treat it as ≤ 8 mA (ab…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Here’s a clear, no-nonsense path to make a Raspberry Pi control and read simple electronics—safely.





Golden rules (so you don’t fry the Pi)




  • GPIO is 3.3 V only. Never put 5 V on a GPIO pin.

  • Per-pin current is tiny. Treat it as ≤ 8 mA (absolute max ~16 mA/pin; keep total low). Use transistors/MOSFETs/relay modules for anything more than an LED.

  • Share ground. If you power a load from an external supply, connect grounds (Pi GND ↔ external GND).

  • Add flyback diodes across coils (relays, solenoids, motors).



Level 1: Blink an LED (output)



Parts: LED, resistor (150–330 Ω), 1× GPIO pin, 1× GND.



Why that resistor?

Example calc: LED Vf≈2.0 V at ~10 mA →



𝑅=(3.3−2.0)/0.010=130 Ω → pick 150 Ω (or safer 220–330 Ω).



Wiring (series): GPIO → resistor → LED anode; LED cathode → GND.



Code (Python, gpiozero):




from gpiozero import LED
from time import sleep

led = LED(17) # BCM pin 17
while True:
led.on(); sleep(0.5)
led.off(); sleep(0.5)






Fade (PWM):




from gpiozero import PWMLED
from time import sleep

led = PWMLED(17)
while True:
for d in [i/100 for i in range(0,101,5)]:
led.value = d; sleep(0.05)






Level 2: Read a button (input)



Parts: Momentary button, 2 wires.



Wiring: One side → GPIO; other side → GND.

Use the Pi’s internal pull-up so idle = 1, pressed = 0.



Code:




from gpiozero import Button, LED
from signal import pause

btn = Button(22, pull_up=True)
led = LED(17)

btn.when_pressed = led.on
btn.when_released = led.off
pause()






Level 3: Drive bigger loads with a transistor or MOSFET



Use this for 5–12 V LED strips, buzzers, small pumps, etc.



NPN transistor example (e.g., 2N2222)




  • GPIO → 1 kΩ → base

  • Emitter → GND

  • Collector → load → +Vext (5–12 V)

  • Flyback diode (1N4148/1N400x) across inductive loads (stripe on diode to +Vext)



Logic-level N-MOSFET example (cleaner for >300 mA)




  • Use a logic-level part (low Rds(on) at Vgs=3.3 V), e.g., AO3400, IRLZ44N, FQP30N06L (through-hole), etc.

  • GPIO → 100 Ω gate resistor; 100 kΩ gate-to-GND pull-down.

  • Source → GND; Drain → load → +Vext.

  • Flyback diode if the load is inductive.



Code (same as LED):




from gpiozero import LED   # can drive a transistor gate
load = LED(17)
load.on()






Tip: For ready-made relay modules, pick 3.3 V-logic-compatible ones or opto-isolated modules that accept a 3.3 V input.



Level 4: Servos, sensors, and smart LEDs




  • Hobby servo (5 V): Use an external 5 V supply (shared GND). Control signal from a PWM-capable GPIO.




from gpiozero import Servo
s = Servo(18) # uses PWM
s.value = 0.0 # center; range -1..+1







  • I²C/SPI sensors: Enable in raspi-config → Interface Options. Use 3.3 V devices or a level shifter.

  • WS2812/Neopixel (5 V): Needs a level shifter (e.g., 74AHCT125/HCT14) for reliable data at 800 kHz; power LEDs from 5 V, share GND.



Quick reference pinout (40-pin models, BCM numbering)




  • 3.3 V: pins 1, 17; 5 V: pins 2, 4; GND: pins 6, 9, 14, 20, 25, 30, 34, 39

  • Popular GPIOs: 17, 27, 22, 23, 24, 25; PWM-friendly: 12, 13, 18, 19.



Common pitfalls (and fixes)




  • Nothing happens: Wrong pin numbering—use BCM numbers consistently.

  • Random resets when load switches: You powered the load from the Pi’s 5 V pin. Use a separate supply and share GND.

  • GPIO pin died: You drove a motor/relay directly. Always use transistor/MOSFET + diode.

  • Flickering WS2812: Add level shifter; add a 330–470 Ω series resistor on DIN; big 1000 µF cap across 5 V/GND at strip input.



Minimal shopping list




  • Assorted resistors (150–330 Ω, 1 kΩ, 100 kΩ)

  • LEDs, tactile buttons

  • 2× NPN (2N2222) and/or logic-level MOSFETs (AO3400/FQP30N06L)

  • 1N4148 or 1N4007 diodes (flyback)

  • Breadboard + jumpers

  • Optional: 1–4-ch relay (3.3 V-logic), level shifter (74AHCT125)

SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - How to activate simple electronics with a Raspberry Pi?
id: 3bf87f47-4b1c-4465-a173-9d2e2e3b070f
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "How to activate simple electro" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich How to activate simple electronics with .... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to activate simple electronics with a Raspberry Pi?

Thematisch verwandte Begriffe: activate, simple, electronics, with · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-57175 | Python Social Auth is a social authentication/registration mechanism. Pr…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel • Rechts: nächster Artikel • unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...
↗ Original-Quelle