Skip to content

9. Input Devices

This week I worked on defining my final project idea and started to getting used to the documentation process.

  • Group assignment:
  • Probe an input device(s)’s analog levels and digital signals (As a minimum, you should demonstrate the use of a multimeter and an oscilloscope.)
  • Document your work on the group work page and reflect on your individual page what you learned

  • Individual assignment:

  • Measure something: add a sensor to a microcontroller board that you have designed and read it.

Group Assignment:

—> Go to Group Assignment

Research

Individual Assignment

I am planning to develop a motor torque based communication system.
I hope I could find the way to use motor as a sensor by it’s reaction torque during this FabAcademy Class.
Before that information, I could imagine one method that installing a strain gage on to the surface of motor arm with bending detection bridge circuit.

Strain type sensor

Knowing my intention, my instructor Kae kindly prepared the following gage sensor and amplifier board.

Strain gage sensor with 120Ω
strain gage

Amplifier board (Akizuki)
amplifier board

In order to make Bridge Circuit, two of 120Ω Strain Gage and two of 120Ω Register are needed to be prepared.
register

Set strain gage for soldering
set for soldering
soldering the gage
Place vinal tubes to cover the soldering
place vinal tube
Soldering lines to pin set
soldering lines to pins
soldering to pin set
cover with vinal tube

I made a both sided gages set with lines and pin.
a set of strain gage

Made a Bridge Circuit for bending strain oriented setting.
bridge circuit

Potentiometer

As a first spiral, I worked for Potentiometer connection with my development Board which I made in week08.

New Board making for Potentiometer in KiCAD

potentiometer
size of cylinder

B10K Potentiometer measurement size
Outside Diameter of cylinder 16.5mm
Pin Pitch 5.0mm

Since the potentiometer pin position is higher than the cylindrical part at the bottom, I decided to make a hole for cylindrical part for soldering fixation.
Make a hole with the center from the center pin at the distance of 13.25mm
16.5/2 + 5 (pin distance from case edge) = 13.25mm

With above measurement result, I designed additional part in my previous Development Board.


Failed to copy Project folder from previous Project

I asked Copilot the way to copy a project for further modification, and got the instruction to make a copy in Windows Explore level not in KiCad application window. Copy four files “.project”, “.board”, “.schematic”, and “.prl” then change names for new projects’.

Here under highlighted files are the copied files from previous Project.
copied files

I changed the names of these files in new folder.
changed names of copied files

As a result, this setting did not work between Schematics window and PCB design window. The “Update PCB from Schematics” icon is not active or not found in the menu with above procedure.
PCB Update in not available


Succeeded way to copy previous KiCad project

This method was suggested by my instructor Kae Nagano.
1. Open KiCad and make a “New Project” from File menu.
make New Project
2. Name new project in the folder you want to make the project.
name new project
3. Open the folder which is named as your New Project name.
You will find new 3 files in there.
3 new files in for the new project
4. Copy same file extension files from your previous Project (see below highlighted files) into this folder.
copy your previous project files
5. Change the previous files’ name into your new project files.
prepare to swap the file name
Changed previous files name into new files name by adding “_” into new filles name to avoid conflict.
Changed names of Previous files

  1. Erase name changed New Files.
    delete name changed new files
    Then Previous Project was actively copied as a New Project.
    completed

  2. Check by opening the New Project file if there is link between Schematics and PCB drawing window.
    check Schematics and PCB window
    Especially check if the “Update PCB from Schematics icon” exist.
    Check if Update PCB from Schematics icon exist

There seems no difference between my failed method (lectured by copilot) and the way succeeded one in terms of file treatment.
Is it because of “.prl” file in failed method?

KiCAD Schematic

Press “A” key to find “Potentiometer” device.

Device: Potentiometer
Value: 10k
Field: B10K

In Footprint Chooser window, Choose following device which seems close to what I have this time (suggested by Chat GTP);
Schematic : R_potentiometer
Footprint : Potentiometer_THT:Potentiometer_Piher_PC-16_Single_Vertical
Footprint Chooser

Pulled this device into my Schematics.
pulled this device in my schematics

Claim each pin assignment of the Potentiometer.
Claim each pin assignment

Arrange line connection in PCB Drawing window.
Somehow, the “PWR_GND” line from the Potentiometer to the Switch cannot be drown as thick line…
PCB drawing

Then, I decided to swap the assignment of Pin1 and Pin3 of Potentiometer which must not be a problem just signal direction (plus and minus) must be shown opposite.
Swap assignment of pin 1 nad 3

Here under modified line connection solved the line thickness from Potentiometer to “PWR_GND pin”.
modified line connection

Modified Schematics is here.
Modified Schematics

Since, I was planning to make a hole for the Cylindrical part of Potentiometer, I measure the points to make the circle for the Cylinder.
position measurement

Place a Circle to Make a hole with the center from the center pin at the distance of 13.25mm
16.5/2 + 5 (pin distance from case edge) = 13.25mm
Draw the circle diameter as 17.0mm
Then, draw the “+3V3” line not to touch the circle(hole).
Place the circle for hole

Pre-trial with the parts before cutting the Board

Before cutting Board, I did quick trial with cable connection with the Development Board I cut in week08.
Connect Potentiometer

Potentiometer signal was observed in the Arduino Monitor.
signal in the Arduino Monitor

Arduino Code for Analog input test with potentiometer

int anavalue = 0;

void setup() {
  // put your main code here, to run repeatedly:  
  pinMode(A1,INPUT);  

  // put your setup code here, to run once:
  Serial.begin(9600);

}

void loop() {
  // put your main code here, to run repeatedly:  
  anavalue = analogRead(A1);
  Serial.print("input value:");
  Serial.println(anavalue);

  delay(100);

}

Confirming the signal in Arduino Monitor

Arduino Monitor