Skip to content
Snippets Groups Projects
Commit 8329d442 authored by yuichitamiya's avatar yuichitamiya
Browse files

add inst week06

parent 441b8906
No related branches found
No related tags found
No related merge requests found
Pipeline #285796 passed
Showing
with 53097 additions and 11 deletions
File added
File added
File added
This diff is collapsed.
docs/Instruction/images/week05/ender3_v2.png

249 KiB

docs/Instruction/images/week05/m3_hole_test.png

417 KiB

File added
docs/Instruction/images/week06/rest_equipment/Oscillo_TBS1052B.png

685 KiB

docs/Instruction/images/week06/rest_equipment/Oscillo_ds213.png

610 KiB

docs/Instruction/images/week06/rest_equipment/quentin_formula.png

26.7 KiB

docs/Instruction/images/week06/rest_equipment/voltage-divider-circuit.png

4.5 KiB

docs/Instruction/images/week06/rest_equipment/voltage-divider-equation.png

1.55 KiB

......@@ -28,7 +28,16 @@
- [FA2022 USB-D11C-serial (Ubuntu_Live_USB + edbg + Xiao)](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips/FA2022_usbserial_Ubuntu_live_USB/)
## Electronics design
- [Eagle hole making](http://yuichitamiya.fabcloud.io/fabacademy2020/projects/eagle_holes/)
- [Eagle_holes_making_shortcut](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips/Eagle_Holes_making_shortcut/)
## Embeded programing
- [Mystery of Bootloader](./tips/bootloader.md)
- [Oscilloscope](http://yuichitamiya.fabcloud.io/fabacademy2020/projects/Oscilloscope/)
## Other Tips list
- [Tips List 2021](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips_list/)
......@@ -6,7 +6,7 @@
- unsupported
- angle
- [stl](http://academy.cba.mit.edu/classes/scanning_printing/angle.stl)
- [gcode](./images/week06/angle.gcode) (1h15)
- [gcode](./images/week05/angle.gcode) (1h15)
![jpg](http://academy.cba.mit.edu/classes/scanning_printing/Prusa/angle.jpg){width=300}
## nueval
......@@ -66,7 +66,7 @@ WARNING - Documentation file
- Creality [Ender-3 V2](https://www.creality.com/goods-detail/ender-3-v2-3d-printer) <- use
- [JP site](https://www.creality-3d.jp/shopdetail/000000000004/)
![](./images/week06/ender3_v2.png){width=300}
![](./images/week05/ender3_v2.png){width=300}
### Slicer
......@@ -95,10 +95,10 @@ stl -> G-code
M3_hole_test
- [f3d](./images/week06/M3_hole_test.f3d)
- [stl](./images/week06/M3_hole_test.stl) (0h14)_4
- [f3d](./images/week05/M3_hole_test.f3d)
- [stl](./images/week05/M3_hole_test.stl) (0h14)_4
![](./images/week06/m3_hole_test.png){width=500}
![](./images/week05/m3_hole_test.png){width=500}
!!! memo
STL
......@@ -156,7 +156,7 @@ M3_hole_test
- obj -> Airdrop
- [3D scanning mirror accessory](https://www.scandy.co/product/the-lookout)
- [download](http://scandypro.com/STL)
- [stl](./images/week06/Scandy+Lookout+STLs.zip) in repo
- [stl](./images/week05/Scandy+Lookout+STLs.zip) in repo
- Camera
- [Qlone](https://www.qlone.pro/)
......
......@@ -51,6 +51,11 @@ Asian Review
Neil: "at least one dimension should be larger than 1m"!?
- material
- 910x1820mm x2 (Group x1, Individual x1)
- [shop stock 2017](https://docs.google.com/document/d/1JuWOrUpjlp4soWDLRY14wLR42nnkVJtF4mHKIAQKY-E/edit)
- Read Tips
- [dog bone in Fusion360](./tips/dogbone.md)
- [How to use Hamamatsu CNC](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips/cut2d_mach3/)
......@@ -101,10 +106,199 @@ ARM</br>SAMD11C |SWD/JTAG |Via programmer</br>(freeDAP board)|serial o
> use the test equipment in your lab to observe the operation
> of a microcontroller circuit board
[Assesment](https://fabacademy.org/2022/nueval/electronics_design.html)
### test equipment
#### Oscilloscope
- TektronixTBS1052B
- [user manual](https://www.allaboutcircuits.com/test-measurement/oscilloscopes/tbs1000b-series-tbs1052b/manual/)
- [user manual_JP](https://download.tek.com/manual/TBS1000B-and-TBS1000B-EDU-Oscilloscope-User-Manual-JA-JA.pdf)
- [Tips](http://yuichitamiya.fabcloud.io/fabacademy2020/projects/Oscilloscope/)
![](./images/week06/rest_equipment/Oscillo_TBS1052B.png){width=400}
!!! note
**Screenshot(Setup the button)**
Insert USB memory
Utility > Options > Printer Setup
Ink Saver On > Off
Save/Recall(on Front panel button)
Action > Save Image > Select Save option
!!! note
**Screenshot**
Save/Recall (on Front panel button) > Action
Save All > Print button > Saves Image to File
- Mini DSO DS213
- [user manual_JP](./images/week06/rest_equipment/DS213_manual)
![](./images/week06/rest_equipment/Oscillo_ds213.png){width=300}
#### Multimeter
- [TDX-200](http://www.ohm-direct.com/shopdetail/002012000014/)
- no beep
- [PM3](https://www.sanwa-meter.co.jp/japan/products/digital_multimeters/pm3.html)
- 電流測定不可
### ToDo
![](http://academy.cba.mit.edu/classes/embedded_programming/D11C/hello.D11C.serial.5V.1.1.jpg){width=300}
![](http://academy.cba.mit.edu/classes/embedded_programming/D11C/hello.D11C.serial.5V.1.1.png){width=300}
- [Kannai Inventry](https://docs.google.com/spreadsheets/d/16No34EYWp9jkpQH5ESc-zzDbUVTjdCI8g1H436G6a8c/edit#gid=426488364)
#### Multimeter
- Measure Voltage between IC2 IN and GND
- USB 5V
- Measure Voltage between IC2 OUT and GND
- IC2: 3.3 Regulator
- [IC REG LINEAR 3.3V 100MA SOT23-3](https://www.digikey.jp/ja/products/detail/LM3480IM3-3.3%2fNOPB/LM3480IM3-3.3%2fNOPBCT-ND/270750?itemSeq=279756902)
- [SAMD11C](https://www.digikey.jp/ja/products/detail/microchip-technology/ATSAMD11C14A-SSUT/5226488)
- Check Connection
- soldered (Connected)
- short (should not be connected, but connected)
#### Oscilloscope
- Read [Oscilloscope](http://yuichitamiya.fabcloud.io/fabacademy2020/projects/Oscilloscope/)
- upload echo program to 3216 breakout board
- Probe TX, RX line (and GND)
- TX(Transmitter): USB-Serial-D11C(3.3V) -> t3216(5V)
- RX(Receiver): t3126(5V) ->(R3_4.99k)-> USB-Serial-D11C(3.3V)
- Open Serial Monitor in Arduino IDE and send Character (1-9. A-Z, a-z… )
- Data bits Will be send from LSB (least significant bit)
- [ASCII](http://www12.plala.or.jp/mz80k2/electronics/ascii/ascii.html)
- Probe RX line
- between **before** 4.99k register (t3216 side) and GND
- between **after** 4.99k register (D11C side) and GND
- Probe RX_t3216_side line and RX_D11C_side line
- may see voltage drop 1.7V(= 5-3.3V)
individual project:
redraw an echo hello-world board,
add (at least) a button and LED (with current-limiting resistor)
check the design rules, make it, and test that it can communicate
extra credit: simulate its operation
!!! note
Ref. [Quentin_2020](https://fabacademy.org/2020/labs/ulb/students/quentin-bolsee/projects/samd11c_uart-updi/)
The UART connector is directly wired to the RX and TX of the serial 0 on the D11C. On the RX pin, the 1.2 kΩ resistor offers some protection in case the other device is talking in 5V serial. The internal protection of the D11C saturates inputs to VDD+0.6V, but can only accept a small injection current. According to the datasheet, we should be safe in this case. Let’s compute the current when RX is at 5V:
![](./images/week06/rest_equipment/quentin_formula.png){width=300}
which is below the reported limit. When enabling the UPDI mode with the jumper, the RX and TX pins are simple shorted together, along with a 4.7 kΩresistor. This resistor limits the current to the TX pin, which is low impedance as it is configured as an output on the D11C. The value of this resistor is not critical, you can also use 5 kΩ.
!!! note
**Level Shift 5V to 3.3V**
![](./images/week06/rest_equipment/voltage-divider-equation.png){width=300}
![](./images/week06/rest_equipment/voltage-divider-circuit.png){width=300}
Ref. [How to Level Shift 5V to 3.3V](https://randomnerdtutorials.com/how-to-level-shift-5v-to-3-3v/)
Echo.ino
```
void setup() {
Serial.begin(115200);
}
void loop() {
if(Serial.available() > 0){
Serial.write(Serial.read());
}
}
```
Ref. [Arduino – A Simple Serial Echo](https://open4tech.com/arduino-simple-serial-echo/)
Result of last year
![](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/images/week6/p_1.jpg){width=400}
## Individual Assignment
> redraw an echo hello-world board,
> add (at least) a button and LED (with current-limiting resistor)
> check the design rules, make it, and test that it can communicate
> extra credit: simulate its operation
### components
Button / Tactile switch
[![](https://cdn-ak.f.st-hatena.com/images/fotolife/f/fujiwaram/20190528/20190528213712.png){width=300}](https://fujiwaram.hateblo.jp/entry/2019/05/28/220841)
> ちなみに、タクトスイッチには4つ足がついていますが、足が向かい合っているところは元からつながっています。
>こんな単純な仕組みなのに、たまに「どっちだっけ?」って思ってしまうのが人間というものです。
>なので私は、確実に導電していない斜め向かいに線を繋げるようにしています。頭いいな〜。
- normally open
- open may mean parts missing
- normally close
LED
- polarized
- anode(+)
- cathode(-): cathode line
- cathode(en)
- Kathode(de)
- [datasheet](https://www.digikey.jp/ja/products/detail/LTST-C150GKT/160-1169-1-ND/269241?itemSeq=279757180)
- Voltage - Forward (Typ) VF = 2.1V
- Current - Test = 10mA
!!! Attention
**Ohm's law**
V=IR
R=V/I
Resistor
- [size](https://eepower.com/resistor-guide/resistor-standards-and-codes/resistor-sizes-and-packages/#)
- 1206
- 0.12" x 0.06"
- 3216(Metric)
- 3.2mm x 1.6mm
- value
- 4991 = 499 x 10^1 = 4990 = 5k[ohm]
- 4990 = 499 x 10^0 = 499 = 500[ohm]
- color code
- APP
- current-limiting resistor
- Ref. [LED Basic_JP](https://www.marutsu.co.jp/pc/static/large_order/led)
- R = (E -VF)/IF = ( 5[V]-2.1[V] )/10m[A] = 2.9[V]/10m[A] = 290[Ohm]
- E: electromotive force
- Pull up / Pull down resistor
- Ref. [here_JP](https://voltechno.com/blog/pullup-pulldown/)
```
pinMode(2, INPUT);
pinMode(3, INPUT_PULLUP);
```
IC
- AVR-1
- 412
- 4: 4KB Flash memory
- 1: AVR-1
- 2: 8 pins
- 1614
- 4: 14 pins
- 3216
- 6: 20 pins
- Ref. [3216 datasheet](https://www.mouser.com/datasheet/2/268/ATtiny3216_ATtiny1616_data_sheet_40001997-1374799.pdf) Figure 1-1.
- pinout
- [AVR-1](http://yuichitamiya.fabcloud.io/fabacademy2020/projects/updi_programme/)
### Eagle
- download [site](https://www.autodesk.com/products/eagle/free-download)
- Library
- [eagle/fab.lbr](https://gitlab.cba.mit.edu/pub/libraries/-/tree/master/)
- [new parts](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips_list/)
- tips
- [Eagle hole making](http://yuichitamiya.fabcloud.io/fabacademy2020/projects/eagle_holes/)
- [Eagle_holes_making_shortcut](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips/Eagle_Holes_making_shortcut/)
- Design roule
- Eagle: DRC
- 16mil = 16 milli-inch = 0.4064 mm
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment