Chapter 9
Spare Parts
The PICSimLab has a window that allows the connection of spare parts to the microcontroller, it can be accessed through the menu “ Modules-> Spare parts ”.
The main window has the menu with the following functions:
-
File
- New configuration - Clear the spare parts window
- Save configuration - Saves the current settings of the spare parts into .pcf file
- Load configuration - Loads the settings from .pcf file
- Save pin alias - Saves the current pin alias to .ppa text file
- Load pin alias - Loads the pin alias from .ppa file
-
Edit
- Clear pin alias - Clear the pin alias
- Toggle pin alias - Enable/Disable pin alias use
- Edit pin alias - Open current pin alias .ppa file in text editor
- Reload pin alias - Reload the current .ppa pin alias file (need after edit .ppa file)
- Zoom in - Increase draw scale
- Zoom out - Decrease draw scale
-
Inputs
- ADXL345 (Accel) - Adds a I2C/SPI accelerometer (only raw values)
- BMP180 (Pressure I2C) - Adds a I2C pressure and temperature sensor
- BMP280 (Pressure I2C) - Adds a I2C/SPI pressure and temperature sensor
- DHT11 (Temp. Hum.) - Adds a humidity and temperature sensor
- DHT22 (Temp. Hum.) - Adds a humidity and temperature sensor
- DS1621 (Temperature I2C) - Adds a I2C temperature sensor
- DS18B20 (Temperature) - Adds a 1-Wire temperature sensor
- Encoder - Adds a rotary quadrature encoder with push button
- FM50 (Temperature) - Adds a analog temperature sensor
- Fixed Voltage - Adds a analog fixed voltage reference
- Gamepad - Adds a gamepad
- Gamepad (Analogic) - Adds a gamepad with one analogic output
- HX711 (Load Cell Amp) - Adds a Load Cell with HX711 amplifier
- Keypad - Adds one matrix keypad
- LDR - Adds a light dependent resistor
- LM35 (Temperature) - Adds a analog temperature sensor
- MPU6050 - Adds a accelerometer and gyroscope (only raw values)
- Potentiometers - Adds 4 potentiometers
- Potentiometers (Rotary) - Adds 4 rotary potentiometers
- Push Buttons - Adds 8 push buttons
- Push Buttons (Analogic) - Adds 8 push buttons with analog output
- SHT3X - Adds a analog temperature and humidity sensor
- Switches - Adds eight switches
- Ultrasonic HC-SR04 - Adds a ultrasonic range sensor
-
Outputs
- 7 Segments Display - Adds four multiplexed (or single) 7 segments displays
- 7 Segments Display (w/dec) - Adds four multiplexed 7 segments displays with decoder
- Buzzer - Adds a active/passive buzzer
- DC Motor - Adds a DC motor with H-bridge and quadrature encoder
- LCD hd44780 - Adds a text display hd44780
- LCD hd44780 I2C - Adds a text display hd44780 connect to one PCF8574 I2C converter
- LCD ili9340 - Adds a color graphic display ili9340 with touchscreen
- LCD pcd8544 - Adds a monochrome graphic display pcd8544 (Nokia 5110)
- LCD pcf8833 - Adds a color graphic display pcf8833
- LCD ssd1306 - Adds a monochrome graphic display ssd1306
- LED Matrix - Adds a 8x8 LED matrix with MAX72xx controller
- LEDs - Adds 8 red LEDs
- RGB LED - Adds one RGB LED
- RGB LED WS2812B - Adds one or multiple addressable RGB LED
- Servo Motor - Adds a servo motor
- Step Motor - Adds a step motor
-
Others
- ETH w5500 - Adds a ethernet shield w5500
- IO 74xx573 - Adds a 74xx573 octal latch
- IO 74xx595 - Adds a 74xx595 SIPO 8 bit shift register
- IO MCP23017 - Adds a MCP23017 serial I2C IO expander
- IO MCP23S17 - Adds a MCP23S17 serial SPI IO expander
- IO MM74C922 - Adds a MM74C922 key encoder
- IO PCF8574 - Adds a PCF8574 serial I2C IO expander
- IO UART - Adds a UART serial port
- Jumper Wires - Adds sixteen jumper wires
- Logic Block - Adds one logic gate block
- MEM 24CXXX - Adds a 24CXXX serial I2C EEPROM memory
- RTC ds1307 - Adds a ds1307 real time clock
- RTC pfc8563 - Adds a pfc8563 real time clock
- SD Card - Adds a SD card shield
- Temperature System - Adds a temperature control system
-
Virtual
- D. Transfer Function - Adds a discrete transfer function mathematical model
- IO Virtual term - Adds a virtual serial terminal
- Signal Generator - Adds a virtual signal generator
- Text Box - Adds a static text box
- VCD Dump - Adds a digital value file dump recorder
- VCD Dump (Analogic) - Adds a analog value file dump recorder
- VCD Play - Adds a digital value file dump player
-
Help
- Contents - Open Help window
- About - Show message about author and version
After adding the part, with a right click of the mouse you can access the options menu of the part with the options:
- Properties - Opens the connection settings window
- Move - Unlocks the part to move
- Rotate - Change the orientation of part
- Delete - Remove part
- Help - Open Help window of part
- About - Show message about author and version of part
9.1 Pin Alias
9.2 Inputs
9.2.1 ADXL345 (Accel)
9.2.2 BMP180 (Pressure I2C)
9.2.3 BMP280 (Pressure I2C)
9.2.4 DHT11 (Temp. Hum.)
9.2.5 DHT22 (Temp. Hum.)
9.2.6 DS1621 (Temperature I2C)
9.2.7 DS18B20 (Temperature)
9.2.8 Encoder
9.2.9 FM50 (Temperature)
9.2.10 Fixed Voltage
9.2.11 Gamepad
9.2.12 Gamepad (Analogic)
9.2.13 HX711 (Load Cell Amp)
9.2.14 Keypad
9.2.15 LDR
9.2.16 LM35 (Temperature)
9.2.17 MPU6050
9.2.18 Potentiometers
9.2.19 Potentiometers (Rotary)
9.2.20 Push Buttons
9.2.21 Push Buttons (Analogic)
9.2.22 SHT3X (Temp. Hum.)
9.2.23 Switches
9.2.24 Ultrasonic HC-SR04
9.3 Outputs
9.3.1 7 Segments Display
9.3.2 7 Segments Display (Decoder)
9.3.3 Buzzer
9.3.4 DC Motor
9.3.5 LCD hd44780
9.3.6 LCD ili9341
9.3.7 LCD pcf8833
9.3.8 LCD pcd8544
9.3.9 LCD ssd1306
9.3.10 LED Matrix
9.3.11 LEDs
9.3.12 RGB LED
9.3.13 RGB LED WS2812B
9.3.14 Servo Motor
9.3.15 Step Motor
9.4 Others
9.4.1 ETH w5500
9.4.2 IO 74xx573
9.4.3 IO 74xx595
9.4.4 IO MCP23017
9.4.5 IO MCP23S17
9.4.6 IO MM74C922
9.4.7 IO PCF8574
9.4.8 IO UART
9.4.9 Jumper Wires
9.4.10 Logic Block
9.4.11 MEM 24CXXX
9.4.12 RTC ds1307
9.4.13 RTC pfc8563
9.4.14 SD Card
9.4.15 Temperature System
9.5 Virtual
9.5.1 D. Transfer Function
9.5.2 IO Virtual Term
9.5.3 Signal Generator
9.5.4 Text Box
9.5.5 VCD Dump
9.5.6 VCD Dump (Analogic)
9.5.7 VCD Play
9.2 Inputs
9.2.1 ADXL345 (Accel)
9.2.2 BMP180 (Pressure I2C)
9.2.3 BMP280 (Pressure I2C)
9.2.4 DHT11 (Temp. Hum.)
9.2.5 DHT22 (Temp. Hum.)
9.2.6 DS1621 (Temperature I2C)
9.2.7 DS18B20 (Temperature)
9.2.8 Encoder
9.2.9 FM50 (Temperature)
9.2.10 Fixed Voltage
9.2.11 Gamepad
9.2.12 Gamepad (Analogic)
9.2.13 HX711 (Load Cell Amp)
9.2.14 Keypad
9.2.15 LDR
9.2.16 LM35 (Temperature)
9.2.17 MPU6050
9.2.18 Potentiometers
9.2.19 Potentiometers (Rotary)
9.2.20 Push Buttons
9.2.21 Push Buttons (Analogic)
9.2.22 SHT3X (Temp. Hum.)
9.2.23 Switches
9.2.24 Ultrasonic HC-SR04
9.3 Outputs
9.3.1 7 Segments Display
9.3.2 7 Segments Display (Decoder)
9.3.3 Buzzer
9.3.4 DC Motor
9.3.5 LCD hd44780
9.3.6 LCD ili9341
9.3.7 LCD pcf8833
9.3.8 LCD pcd8544
9.3.9 LCD ssd1306
9.3.10 LED Matrix
9.3.11 LEDs
9.3.12 RGB LED
9.3.13 RGB LED WS2812B
9.3.14 Servo Motor
9.3.15 Step Motor
9.4 Others
9.4.1 ETH w5500
9.4.2 IO 74xx573
9.4.3 IO 74xx595
9.4.4 IO MCP23017
9.4.5 IO MCP23S17
9.4.6 IO MM74C922
9.4.7 IO PCF8574
9.4.8 IO UART
9.4.9 Jumper Wires
9.4.10 Logic Block
9.4.11 MEM 24CXXX
9.4.12 RTC ds1307
9.4.13 RTC pfc8563
9.4.14 SD Card
9.4.15 Temperature System
9.5 Virtual
9.5.1 D. Transfer Function
9.5.2 IO Virtual Term
9.5.3 Signal Generator
9.5.4 Text Box
9.5.5 VCD Dump
9.5.6 VCD Dump (Analogic)
9.5.7 VCD Play