Batch - 10
Batch - 10
BOTTLES
ABSTRACT
Reverse vending machine is a concept or an idea which inculcate the habit
of recycling the waste materials. It will be working by taking recyclable
waste into the machine and gives a useful thing as a token of appreciation.
The aim of this project is to design and fabricate a reverse vending machine
which takes recyclable waste into the machine and displays a token of
appreciation. The machine can accept a plastic bottle of 90mm diameter
without cap and tin cans can be accepted and crushed and stored. The
machine has a capacity of storing 50 plastic bottles and 50 tin cans. There
basically two parts, one is the mechanical part and the other is the
electronics part. The mechanical part is used to crush the recyclable waste
which is kept in the machine so that more plastic and cans can be recycled
and stored. The electronics part which consist of sensor and
microcontroller, is used to take the correct input and segregate the waste
into its respective categories and give a token of appreciation as a LCD
display. The whole system is automated by the help of electronics.
Combining both parts will give a reverse vending machine. Reverse
vending machine will be working by taking recyclable waste into the
machine and gives a use full thing as a token of appreciation. With limited
resources in the world, we need to start preserving them and put an end to
wastage. Being encouraged to recycle through a rewards system. To
encourage recycling process we are designing and manufacturing reverse
vending machine.
This project uses regulated 5V, 500mA power supply. Unregulated 12V DC
is used for relay. 7805 three terminal voltage regulator is used for voltage
regulation. Bridge type full wave rectifier is used to rectify the ac output of
secondary of 230/12V step down transformer.
CHAPTER 1
1.1 INTRODUCTION:
Medical equipment.
1.3 CHARACTERISTICS:
1.4MICROPROCESSOR (MP):
Ser
ial
CPU CO
RAM ROM I/O Port Timer M
General
MICROCON Port
TR OLLERS
(MC)-
Purpose
1.5MICROCONTROLLER (MC):
PERIPHERALS:
Embedded Systems talk with the outside world via peripherals, such as
2.1 INTRODUCTION
In this thesis, a machine vision system based on multiple cameras has been
developed for a reverse vending machine prototype. The multi-camera
system enables high return speed and simplifies the mechanical structure of
the reverse vending machine. With the camera-based system, various
additional visual features, such as deposit and security markings, can be
extracted from the captured images for verification unlike with traditional
laser-based barcode scanners. Furthermore, with no moving parts, the
system is virtually maintenance free. The machine vision system developed
in this thesis has been a part of a larger Tekes funded New Knowledge and
Business from Research Ideas [10] project. The project focused on
developing a fast, low cost, easily maintainable and reliable reverse vending
machine. The developed system consists of six Raspberry Pi -based
cameras placed on a perimeter around the beverage container return chute
for imaging the outer surface of a beverage container as it slides past the
cameras and the barcode is extracted from the images. Ordinary PC
hardware is used for the image processing together with the software
developed as a part of this study.
SERVO
RPS MOTORS 2
RASPBERRY
LCD
PI
IR SENSOR
BUZZER
Power Supply
Raspberry Pi
IR Sensor
Servo Motor
LCD
Buzzer
CHAPTER 3
TECHNOLOGY USED
Edge detection.
Segmentation.
Classification.
Feature detection and matching.
3.2 OPEN CV
INTRODUCTION
Whether it is medical diagnosis, self-driving vehicles, camera
monitoring, or smart filters, many applications in the field of computer
vision are closely related to our current and future lives. In recent years,
deep learning has been the transformative power for advancing the
performance of computer vision systems. It can be said that the most
advanced computer vision applications are almost inseparable from deep
learning. In view of this, this chapter will focus on the field of computer
vision, and investigate methods and applications that have recently been
influential in academia and industry.
IMAGE AUGMENTATION
Flipping the image left and right usually does not change the
category of the object. This is one of the earliest and most widely used
methods of image augmentation. Next, we use the transforms module to
create the Random Flip Left Right instance, which flips an image left and
right with a 50% chance.
MULTI-GPU TRAINING
Now we can define the train with data aug function to train the model
with image augmentation. This function gets all available GPUs, uses
Adam as the optimization algorithm, applies im- age augmentation
to the training dataset, and finally calls the train_ch13 function just
defined to train and evaluate the model.
SUMMARY
Image augmentation generates random images based on
existing training data to improve the generalization ability of
models.
3.2 FINE-TUNING
STEPS
When target datasets are much smaller than source datasets, fine-
tuning helps to improve model generalization ability.
The hot dog dataset we use was taken from online images. This
dataset consists of 1400 positive- class images containing hot dogs,
and as many negative-class images containing other foods. 1000
images of both classes are used for training and the rest are for
testing.
We create two instances to read all the image files in the training and
testing datasets, respectively.
The first 8 positive examples and the last 8 negative images are
shown below. As you can see, the images vary in size and aspect
ratio.
In the code below, the model parameters before the output layer
of the target model instance finetune net are initialized to model
parameters of the corresponding layers from the source model. Since
these model parameters were obtained via pretraining on ImageNet,
they are effec tive. Therefore, we can only use a small learning rate
to fine-tune such pretrained parameters. In contrast, model
parameters in the output layer are randomly initialized and
generally require a larger learning rate to be learned from scratch.
Let the base learning rate be η, a learning rate of 10η will be used to
iterate the model parameters in the output layer.
First, we define a training function train fine tuning that uses fine-
tuning so it can be called multiple times.
epcho
SUMMARY
We will load the sample image to be used in this section. We can see
that there is a dog on the left side of the image and a cat on the right.
They are the two major objects in this image.
BOUNDING BOXES
We will define the bounding boxes of the dog and the cat in the
image based on the coordinate information. The origin of the
coordinates in the image is the upper-left corner of the image, and to
the right and down are the positive directions of the x and y axes,
respectively.
We can verify the correctness of the two bounding box conversion
functions by converting twice.
Let us draw the bounding boxes in the image to check if they are
accurate. Before drawing, we will define a helper function. It
represents the bounding box in the bounding box format of the
matplotlib package.
After adding the bounding boxes on the image, we can see that the
main outline of the two objects are basically inside the two boxes.
SUMMARY
HARDWARE IMPLEMENTATION
In this project we have power supplies with +5V & -5V option
normally +5V is enough for total circuit. Another (-5V) supply is used in
case of OP amp circuit.
TRANSFORMER
RECTIFIERS
FILTERS
4.2 RASPBERRY PI
In this modern age when computers are sleek, Raspberry Pi seems alien
with tiny codes printed all over its circuit board. That’s a big part of
Raspberry Pi’s appeal. Let us have a look at what we can do with this
appealing circuit board.
USES
Like a desktop computer, you can do almost anything with the Raspberry
Pi. You can start and manage programs with its graphical windows desktop.
It also has the shell for accepting text commands.
We can use the Raspberry Pi computer for the following:
Playing games
Word processing
Spreadsheets
Editing photos
The best use of Raspberry Pi is to learn how a computer works. You can
also learn how to make electronic projects or programs with it.
REQUIREMENTS
To use your Raspberry Pi board, you need to buy a few other bits and
pieces. Following is the checklist of what else we might need:
Monitor
Television
In the similar way, if you have High-Definition Television (HD TV), you
can also connect it to your Raspberry Pi using an HDMI socket. It will give
you a crisper picture.
USB hub
Raspberry Pi only supports the USB keyboards and mouse. If you are using
keyboards and mouse with PS/2 connectors, you need to replace them with
Raspberry Pi.
SD or MicroSD card
As we know that the Raspberry Pi does not have a hard drive, so we need to
use SD cards or MicroSD cards (depending on the model) for storage.
If you are going to use model A and A+ then, you need to buy a USB Wi-Fi
adapter for connecting to the internet. This should be done because these
Raspberry models do not have an Ethernet socket.
If you want to share your collection of music and movies, you need to use
an external hard drive with your Raspberry Pi model. You can connect the
same by using a powered USB cable.
Power supply
For power supply, it uses a Micro USB connector. Hence theoretically, it is
compatible with a mobile phone and tablet charger.
Cables
Following are some of the cables, which you need for the connections to the
Raspberry Pi computer:
HDMI cable
HDMI-to-DVI adapter, if you are using a Digital Visual Interface
(DVI) monitor.
RCA cable, if you want to connect to an older television.
Audio cable
Ethernet cable
Before you get started with your Raspberry Pi board, you need to provide
with an OS (operating system). Linux is the most frequently used OS on the
Raspberry Pi.
For using an OS, we need to create a Secure Digital (SD) or MicroSD card
with an OS on it. The prerequisite for setting up the SD or MicroSD is a
computer having an internet connection and the ability to write to SD or
MicroSD cards.
4.2.1 OPERATING SYSTEM
NOOBS SOFTWARE
There is an option to buy a card with NOOBS already installed on it, but it
is always useful to know how to create your own NOOBS cards.
DOWNLOAD NOOBS
Step 2: Select from the two versions of NOOBS available. Version 1 is the
main version and includes Raspbian. This is the officially supported OS,
which you can use even without any network connection.
Another option is to choose the OS from the menu. You can download and
install the OS from the menu, if you have a network connection. It is always
recommended to download NOOBS for your first OS.
Let us see how we can format the SD card by using windows, Mac OS, and
Linux.
USING WINDOWS
USING MAC OS
USING LINUX
Step 3: You will get the screen as below, which shows the partitions of the
removable disk. But before starting the formatting, we need to unmount the
disk by right-clicking on the partition as shown below:
Step 4: After unmounting, we need to right click on it, which will show us
the Format to option. Now from the list, you can choose whatever type of
file system you want on the disk.
After selecting the drive to format, you need to click on the Tick sign as
shown below:
Step 5: It will show you a couple of warnings and the format procedure will
be started.
On windows PC, you can simply double click the .zip file. It will open the
file. Once opened, you can select all the files and copy them to your
formatted card.
Similarly, on a Mac OS, you can see the folder that contains all the files by
double clicking on the NOOBS .zip file. Now, click on the Edit menu and
select all. Drag all the files onto your SD card.
In the same way, on Linux we can use the desktop environment to copy the
NOOBS .zip files to our SD card.
Some operating systems (OS) may not be available through NOOBS. One
of them is the Reduced Instruction Set Computer (RISC) OS.
For creating a card for such an OS, we need to first download the OS as an
image file. Once an image file is downloaded, we need to use the process
called flashing your card. Later on, the single file can be converted into all
the files which we need on our card (SD or MicroSD).
Diagram 1
2
Diagram 2
Following is the diagram for Raspberry Pi Model A:
Diagram 3
Following is the diagram for Raspberry Pi Zero:
If you are using model 2, 3, A+, or B+ then, you need to turn your
Raspberry Pi circuit board, so that the underside is at your side and you can
see that.
You can see, there would be a metal MicroSD card slot on the left side of
the board. Slide your card into this slot.
On the other hand, if you are using Model A or Model B, you need an SD
card and you need to flip your Raspberry Pi over. Now, slide the SD card
while facing the label side above. After that you need to gently press the
card home.
And we know that the models Pi Zero and Zero W have the MicroSD card
slot mounted on the top surface of the board. To insert the card, you need to
put the label side facing you.
CAMERA MODULE
From the above diagram, you can see that for protection, the lens has a
plastic film over it. You need to pull the green plastic tab to remove the
film.
ON RASPBERRY PI ZERO
The Raspberry Pi model camera socket uses a different width of cable and
you can buy that cable separately. You can also get that cable with the
official Raspberry Pi Zero case. You can check the board and the camera
have similar sockets for the cable.
To open the connector, you just need to gently press the connector between
your finger and thumb. The camera connector is on the right of the
Raspberry Pi board.
To connect the cable with the camera, insert the cable with the shiny
contacts facing the camera front. And on the Pi Zero board, insert the cable
with the shiny contacts facing the flat side of the board i.e., the bottom
side.
ON OTHER RASPBERRY PI MODELS
To connect the camera on other boards, you need to hold the ends in
between your finger and thumb. Then, gently lift the board and it will move
apart to make a gap. This is the place, where you will insert the cable of the
camera.
At the end of the camera’s cable, you can see there are silver connectors on
one side. Now hold the cable in such a way that this side faces to the left.
Once done, insert the cable into the connector on your Raspberry Pi board.
Press it gently and then press the socket back together again and your board
is ready with the camera.
DISPLAY DEVICE
Depending on the screen type, you have two ways to connect the display
device to your Pi board. In these two ways, we are assuming that you are
going to use either monitor or
television. Apart from these two ways, there is an official Pi touchscreen
that connects using the display socket. Let us check how we can connect an
HDMI display and television, as explained below.
The HDMI connector is on the top surface of your Raspberry Pi board. But for
the Raspberry Pi Zero model, you need to use an adapter that converts Mini
HDMI to an HDMI socket. For connecting, insert one end of the HDMI
cable in the board or Pi ZERO connector and the other end into your
monitor.
On the other hand, if you are using a DVI display, an adapter should be
used.
TELEVISION
If the TV you are using is having a HDMI socket, you can use that for
optimal results. But if in case, your TV does not have an HDMI socket, you
need to use the composite video socket.
One thing you should note is that you will need to use a special RCA cable
for this socket. Connect one end of the RCA cable to the audio output
socket and the other end to Video in socket of the TV.
If you are using Pi Zero or Zero W boards then, you need to solder your
own connector to the board, where it is labelled TV. This should be done
because, both these boards do not have composite video socket.
Because with this, the devices will not draw too much power from the Pi
board, and we can reduce the risk of heat and other problems caused by
devices.
On the other hand, for Raspberry Pi Zero, Model A, and Model A+, we
must use a USB hub, since these boards have only one USB socket.
AUDIO DEVICES
Raspberry Pi’s audio socket is a small black or blue box. On Model A and
Model B, it is stuck along the top edge of the board. Whereas, on Model
B+, Pi 2 and Pi 3, it is stuck along the bottom edge of the board.
If you have connected an HDMI TV, then you do not need to connect a
separate audio cable, as the sound is routed through your HDMI cable.
On the other hand, if you have earphones or headphones with a 3.5mm jack,
you can directly plug them into the audio socket.
Alternatively, it is recommended to use a suitable cable, as shown in the
below figure. The cable has Pi’s 3.5mm jack on the left and stereo
input/output plugs that feed into many stereos shown on the right.
INTERNET ROUTER
All the Raspberry Pi models other than Model A, A+, and Zero have an
Ethernet socket. You can find the socket on the right edge of the Raspberry
board. To connect to the internet, you can use a standard Ethernet cable in
this socket.
In case if you are using a router with DHCP (Dynamic Host Configuration
Protocol) support, your Raspberry Pi will automatically connect to the
internet.
On the other hand, if you have a Wi-Fi adapter then, you can plug into a
USB socket of Raspberry Pi and it will be ready to use whenever you turn
on your board.
POWER
Once you are done with connecting all the necessary and required devices,
it is time to connect your Raspberry Pi to power and turn it on. For this, you
need to use the Micro USB power socket.
If you want to turn it off, you just need to disconnect it. So, if you want to
save your data, you should proceed with caution and should shut down the
Raspberry Pi first.
TURN ON RASPBERRY PI
Connect with the power and turn on your Raspberry Pi board. There will be
a rainbow of colors on screen. Afterwards, it will start to run the NOOBS
software on the Memory card. You will get a choice of OS to install.
RASPBIAN
Raspbian, a version of a Linux distribution called Debian, is the distribution
that is recommended by the Raspberry Pi foundation. It has been optimized
for the Raspberry Pi board.
Web browser.
It has two versions, one with the PIXEL desktop and other is termed as
Raspbian Lite, with a more minimal installation.
LIBR EELEC AND OSMC
Both are the versions of Kodi media center. They are mainly used for
playing music and video.
RISC OS
DATA PARTITION
If you use the Data Partition option, it will give you an option to sort the
data. The sorted data can be accessed by various Linux distributions.
LAKKA
Plug your USB with games files and you will be ready to get games into
Lakka.
RECALBOX
Images
Web pages
TLXOS
This is ThinLinX’s thin client software. It is a trial version and enables the
Raspberry Pi to work as a virtual desktop. By using ThinLinX, we can also
manage one or more Raspberries centrally.
4.2.3 CONFIGURATION
In this chapter, we will learn about configuring the Raspberry Pi. Let us
begin by understanding how to configure Raspberry Pi board in Raspbian.
RASPBIAN CONFIGURATION
For configuring Raspberry Pi in Raspbian, we are using Raspbian with
PIXEL desktop. It is one of the best ways to get Raspbian started with the
Raspberry Pi. Once we finish booting, we will be in the PIXEL desktop
environment.
Now to open the menu, you need to click the button that has the Raspberry
Pi logo on it. This button will be in the top left. After clicking the button,
choose Raspberry Pi configuration from the preferences.
CONFIGURATION TOOL
You can enable the Pi camera from the interface tab. You can also set up a
secure connection between computers by using SSH (short for Secure
Shell) option.
If you want to remote access your Pi with a graphical interface then, you
can enable Real VNC software from this tab. SPI, I2C, Serial, 1-wire, and
Remote GPIO are some other interfaces you can use.
There is another tab called Performance, which will give you access to the
options for overclocking and changing the GPU memory.
CONFIGURE Wi-Fi
You can check at the top right, there would be icons for Bluetooth and Wi-
Fi. The fan- shaped icon is on the Wi-Fi. To configure your Wi-Fi, you need
to click on that icon. Once clicked, it will open a menu showing the
available networks. It also shows the option to turn off your Wi-Fi.
Now, you need to click on the Bluetooth menu at the top right of
the screen. It is aligned to the Wi-Fi button.
Now, choose the Add Device option.
The Raspberry will start searching for the devices and when it
finds your device, click it and click the pair button.
As we know that data partition is that area on your memory card (SD or
MicroSD) which can be shared by various distributions. One of the best
examples of use of a data partition is transferring the files between
distributions.
You can use this labeled data to make a directory point to it as follows:
Step 2: Now, click the Terminal icon to get to the command line.
Step 3: Next, type the command mkdir shared. It will create a directory
named shared.
Step 4: Write the command sudo mount -L data shared. This command
will point the directory to the shared partition.
Step 5: Write the command sudo chown $USER: shared. It will set the
permission for writing in this shared folder.
Step 6: Now, to go to this shared folder, you need to type the command cd
shared.
Once all the files are created in this shared folder, they will be available to
all the distributions that have the permission to access the data partition.
4.3 IR SENSOR
IR LED is one kind of transmitter that emits IR radiations. This LED looks
similar to a standard LED and the radiation which is generated by this is not
visible to the human eye. Infrared receivers mainly detect the radiation
using an infrared transmitter. These infrared receivers are available in
photodiodes form. IR Photodiodes are dissimilar as compared with usual
photodiodes because they detect simply IR radiation. Different kinds of
infrared receivers mainly exist depending on the voltage, wavelength,
package, etc.
Infrared sensors are classified into two types like active IR sensor and
passive IR sensor.
Active IR Sensor
This active infrared sensor includes both the transmitter as well as the
receiver. In most of the applications, the light-emitting diode is used as a
source. LED is used as a non-imaging infrared sensor whereas the laser
diode is used as an imaging infrared sensor.
These sensors work through energy radiation, received & detected through
radiation. Further, it can be processed by using the signal processor to fetch
the necessary information. The best examples of this active infrared sensor
are reflectance and break beam sensor.
Passive IR Sensor
The passive infrared sensor includes detectors only but they don’t include a
transmitter. These sensors use an object like a transmitter or IR source. This
object emits energy and detects through infrared receivers. After that, a
signal processor is used to understand the signal to obtain the required
information.
High efficiency.
High output power relative to their size.
More constant torque at higher speed.
Closed-loop control.
Quiet operation.
Highly reliable.
High ratio of torque to inertia.
High acceleration.
4.5 LCD
FEATURES
E-blocks compatible
Low cost
Compatible with most I/O ports in the E-Block range (requires 5 I/O
lines via 9-way D-type connector)
Ease to develop programming code using Flow code icons
4.9 BUZZERS
SOFTWARE COMPONENTS
SETTING UP PYTHON
This book is about programming computers with Python. You could read
this book from cover to cover without ever touching a keyboard, but you’d
miss out on the fun part—coding!
To get the most out of this book, you need a computer with Python installed
on it and a way to create, edit, and save Python code files.
IN THIS CHAPTER, YOU’LL LEARN HOW TO:
Install the latest version of Python 3 on your computer
Many operating systems, including macOS and Linux, come with Python
preinstalled. The version of Python that comes with your operating system
is called the system Python.
The system Python is used by your operating system and is usually out of
date. It’s essential that you have the most recent version of Python so that
you can successfully follow along with the examples in this book.
Important
Note
Even if you already have Python 3.9 installed, it’s still a good idea to
skim this chapter to double-check that your environ- ment is set up
for following along with this book.
This chapter is split into three sections: Windows, macOS, and Ubuntu
Linux. Find the section for your operating system and follow the steps to
get set up, then skip ahead to the next chapter.
If you have a different operating system, then check out Real Python’s
“Python 3 Installation & Setup Guide” to see if your OS is covered.
Readers on tablets and mobile devices can refer to the “Online Python
Interpreters” section for some browser-based options.
WINDOWS
Important
INSTALL PYTHON
Then scroll to the bottom and click Windows x86-64 executable in- staller
to start the download.
Note
If your system has a 32-bit processor, then you should choose the 32-
bit installer. If you aren’t sure if your computer is 32-bit or 64-bit,
stick with the 64-bit installer mentioned above.
Open your Downloads folder in Windows Explorer and double-click the file to
run the installer. A dialog that looks like the following one will appear:
It’s okay if the Python version you see is greater than 3.9.0 as long as the
version is not less than 3.
Important
Make sure you select the box that says Add Python 3.x to PATH. If you
install Python without selecting this box, then you can run the
installer again and select it.
Click Install Now to install Python 3. Wait for the installation to finish,
then continue to open IDLE.
OPEN IDLE
1. Click the Start menu and locate the Python 3.9 folder.
Note
While you’re free to use a code editor other than IDLE if you prefer,
note that some chapters, especially chapter 7, “Finding and Fixing
Code Bugs,” do contain material specific to IDLE.
The >>> symbol that you see is called a prompt. Whenever you see this, it
means that Python is waiting for you to give it some instructions.
Interactive Quiz
This chapter comes with a free online quiz to check your learning
progress. You can access the quiz using your phone or computer at
the following web address:
realpython.com/quizzes/pybasics-setup
Now that you have Python installed, let’s get straight into writing your first
Python program! Go ahead and move on to chapter 3.
macOS
Important
INSTALL PYTHON
To install the latest version of Python 3 on macOS, download and run the
official installer from the Python.org website.
Step 1: Download the Python 3 Installer
Click Latest Python 3 Release - Python 3.x.x located beneath the “Python
Releases for Mac OS X” heading near the top of the page. As of this
writing, the latest version was Python 3.9.
Then scroll to the bottom of the page and click macOS 64-bit installer
Open Finder and double-click the downloaded file to run the installer. A
dialog box that looks like the following will appear:
Press Continue a few times until you are asked to agree to the software
license agreement. Then click Agree.
You’ll be shown a window that tells you where Python will be installed and
how much space it will take. You most likely don’t want to change the
default location, so go ahead and click Install to start the installation.
When the installer is finished copying files, click Close to close the
installer window.
OPEN IDLE
Note
While you’re free to use a code editor other than IDLE if you prefer,
note that some chapters, especially chapter 7, “Finding and Fixing
Code Bugs,” do contain material specific to IDLE.
The >>> symbol that you see is called a prompt. Whenever you see this, it
means that Python is waiting for you to give it some instruc- tions.
Interactive Quiz
This chapter comes with a free online quiz to check your learn- ing
progress. You can access the quiz using your phone or com- puter at
the following web address:
realpython.com/quizzes/pybasics-setup
Now that you have Python installed, let’s get straight into writing your first
Python program! Go ahead and move on to chapter 3.
UBUNTU LINUX
Important
INSTALL PYTHON
There’s a good chance that your Ubuntu distribution already has Python
installed, but it probably won’t be the latest version, and it may be Python 2
instead of Python 3.
To find out what version(s) you have, open a terminal window and try the
following commands:
$ python --version
$ python3 --version
$ python3 --
version Python
3.9.0
Your version number may vary. If the version shown is Python 2.x or a
version of Python 3 that is less than 3.9, then you want to in- stall the
latest version. How you install Python on Ubuntu depends on which
version of Ubuntu you’re running. You can determine your local Ubuntu
version by running the following command:
$ lsb_release -a
Codename: bionic
Look at the version number next to Release in the console output, and
follow the corresponding instructions below.
Ubuntu version 18.04 does not come with Python 3.9 by default, but it is
Note that because the Universe repository is usually behind the Python
release schedule, you may not get the latest version of Python
3.9. However, any version of Python 3.9 will work for this book.
For Ubuntu versions 17 and lower, Python 3.9 is not in the Universe
repository. You need to get it from a Personal Package Archive (PPA). To
install Python from the deadsnakes PPA, run the following com- mands in
the Terminal application:
You can check that the correct version of Python was installed by run- ning
python3 --version. If you see a version number less than 3.9, then you may
need to type python3.9 --version. Now you can open IDLE and get ready
to write your first Python program.
OPEN IDLE
You can open IDLE from the command line by typing the following:
$ idle-python3.9
On some Linux installations, you can open IDLE with the following
shortened command:
$ idle3
IDLE opens a Python shell in a new window. The Python shell is an
interactive environment that allows you to type in Python code and execute
it immediately. It’s a great way to get started with Python!
Note
While you’re free to use a code editor other than IDLE if you prefer,
note that some chapters, especially chapter 7, “Finding and Fixing
Code Bugs,” do contain material specific to IDLE.
At the top of the window, you can see the version of Python that is running
and some information about the operating system. If you see a version less
than 3.9, then you may need to revisit the installation instructions in the
previous section.
Important
If you open IDLE with the idle3 command and see a version less
than 3.9 displayed in the Python shell window, then you’ll need to
open IDLE with the idle-python3.9 command.
The >>> symbol that you see in the IDLE window is called a prompt.
Whenever you see this, it means that Python is waiting for you to give it
some instructions.
Interactive Quiz
This chapter comes with a free online quiz to check your learn- ing
progress. You can access the quiz using your phone or com- puter at
the following web address:
realpython.com/quizzes/pybasics-setup
Now that you have Python installed, let’s get straight into writing your first
Python program! Go ahead
5.2 PROTEUS
5.2.1 INTRODUCTION:
What is the main difference between the dotted PCB and layout PCB?
After completion of designing save with some mane and debug it.
This is virtual simulation means without making circuit we can see the
result in virtually through this software and we can design the PCB layout
to our required circuit with this software.
CHAPTER 6
7.1 ADVANTAGES
7.2 APPLICATIONS
CHAPTER 8
While the developed system currently has lower recognition accuracy than
the tested commercial reverse vending machines due to lighting issues, the
return speed is already competitive. The results confirm the superiority of
the camera-based system over traditional recognition methods, typically
based on a beverage container rotation combined with a single
omnidirectional laser-based barcode reader. In addition, the user experience
is improved as the beverage containers can be returned at a high rate, either
top or bottom first unlike with the existing rotation-based systems.
Furthermore, the developed recognition unit design simplifies the
mechanics of the reverse vending machine. The camera-based system and
the chute have no moving parts making the system virtually maintenance
free.
CHAPTER 9
REFERENCE
1) https ://www.acorecycling.com/b-1-smart-reverse-vending-machine.
2) https ://www.snapmunk.com/reverse-vending-machine-recycling.
3) https ://www.raspberrypi.org/documentation/configuration/raspi-
config.md
4) https ://towardsdatascience.com/r-cnn-fast-r-cnn-faster-r-cnn-yolo-
object-detection-algorithms-36d53571365e
5) https ://docs.fast.ai/
6) https ://ch.mathworks.com/help/deeplearning/ref/resnet18.html
7) https ://en.wikipedia.org/wiki/AlexNet.
8) REXAM, “Annual report 2013” (Cited: Feb. 7th 2015), Available:
http://www.rexam.com/files/reports/2013ar/assets/downloads/Rexa
m_ Annual_Report_2013.pdf.
9) The Bottle Bill Resource Guide, “Beverage Container Deposit Laws
Worldwide” (Cited: Feb. 10th 2015), Available:
http://www.bottlebill.org/ legislation/world.htm.
10) PALPA, “Kaikki kiert¨a¨a – Palpan vuosijulkaisu 2013” (Cited: Feb.
10th, 2015), Available:
http://www.digipaper.fi/palautuspakkaus/120034/.
11) Infinitum, “Deposit facts of 2013” (Cited: Feb. 10th 2015),
Available: http://infinitum.no/english/deposit-facts-of-2013.
12) K. Holmen, J. S. Rognhaug, J. Rype, “Device for handling liquid
container,” U.S. Patent 6 678 578, January 13, 2004.
13) A. Nordbryhn, “Device for generating, detecting and recognizing a
contour image of a liquid container,” U.S. Patent 5 898 169, April
27, 1999.