Lamp (bulb)

The incandescent bulb consists of a filament within a glass casing which is filled with inert gas. When current is passed through the filament, which connects to its metal base, the filament glows and emits light.

Small bulbs have generally been superseded by LEDs as those draw lower currents and are easier to control using a PICAXE.

Higher power bulbs are increasingly being replaced by higher power LEDs.

Related Commands:

Print Page

Share

Schematic

PCB

Light a lamp

The following program will activate a FET or Darlington transistor connected to output B.1, which in turn will light the lamp, for a second every five seconds.

Code Example:
main: 	high B.1 	; Switch on output B.1 
	pause 1000 	; Wait 1 second 
	low B.1 	; Switch off output B.1 
	pause 5000 	; Wait 5 seconds 
	goto main 	; Loop back to start
Copy Code Submit an Example

Create Module

A 4.5V bulb may be connected via the BCX38C darlington transistor create module (buzzer shown here).

Bill of Materials

DescriptionCodeQty
Bulb ? 1 Buy Now
Bulb holder ? 1 Buy Now
BCX38C Darlington driver transistor TRT002 1 Buy Now
1k resistor (pack 100) RES1K 1 Buy Now
1N4001 Diode RES041 1 Buy Now

Simulation

No Image Selected

Submit Your Own Code!

You must be logged in to submit code examples. Login now.

Comments

  • Login to leave a comment.