Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

Alternative Simulation Exercises – Lab 2

Introduction

This  document  outlines  simulation  exercise  alternatives  to  the  lab  tasks  shown  in  Lab  2  – Microcontroller and Output Display” of the Project (EENG18020) Lab Notes (2021/2022). These tasks should only be done if you do not have a Home Lab Kit. This document is to be used in parallel with the Lab notes for this unit. These tasks will require you to use the following software program that you have already been using in your other units:

•    Wokwi – For creating circuit layouts and for running and testing your microcontroller program

Lab 2 alternative task list

This section covers what tasks are being changed in order to complete the lab. It also gives instructions on how to perform the task if it has been changed.

Task 2.1

Use Wokwi to create the circuit shown in Figure 2.4 of the lab notes. Details of this circuit are as follows:

•    Go tohttps://wokwi.com/and start a “MicroPython Project” . This will load up a project screen with some sample python code and a Raspberry Pi Pico in the simulation window

•    Use 2 single digit 7-segment displays to represent the dual-digit 7-segment display. Note that the Wokwi 7-segment display has a different pinout to the HDSP-523E so you will need to hover the mouse over each pin to see what each of them are. Set the 7-segment displays as common cathodes by going into the diagram.json’ file and setting the attributes line for each 7-segment display to the following:

o “attrs”: { “common”: “cathode” }

•    Use any 14 of the GPIO pins to connect the resistors to the Raspberry Pi Pico. Set the resistor values to 330 Ω by going into the ‘diagram.json’ file set the attributes line for each resistor to the following:

o “attrs”: { “value”: “330” }

Take a screenshot of this circuit for your lab report.

Task 2.2

Task no longer required as the microcontroller program will be written and debugged in Wokwi.

Task 2.3

Task no longer required as the microcontroller program will be written and debugged in Wokwi.

Task 2.4

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.5

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.6

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.7

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.8

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.9

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.10

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.11

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.12

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.

Task 2.13

No change. Task should be carried out as stated in the lab notes using the Wokwi circuit you created in task 2.1.