Skip to content
Snippets Groups Projects
Commit 22d4e496 authored by yuichitamiya's avatar yuichitamiya
Browse files

add inst week embed and tips

parent 68919657
No related branches found
No related tags found
No related merge requests found
Pipeline #289669 passed
docs/Instruction/images/endmill/climb_vs_conventional.png

295 KiB

docs/Instruction/images/endmill/compression.png

9.71 KiB

docs/Instruction/images/endmill/img_name.png

44.4 KiB

docs/Instruction/images/endmill/spiral_3hikaku.jpg

47.3 KiB

docs/Instruction/images/endmill/spiral_sentan.jpg

24.1 KiB

docs/Instruction/images/register/ATtiny_x14.gif

85.3 KiB

# CNC Tooling
## Endmill
### up/down cut
![](../images/endmill/spiral_3hikaku.jpg)
from left, Up cut, Down cut, Compression(Up and Downcut)
Ref.[BTMT](https://www.btmt.jp/hpgen/HPB/entries/22.html)
### Upcut vs Compression
![compression](../images/endmill/compression.png)
- Ref. [CONVENTIONAL MILLING VS. CLIMB MILLING](http://www.harveytool.com/secure/Content/Documents/Tech_ConventionalMillingVsClimbMilling.pdf)
- Ref. [THE CORRECT WAY TO SETUP A COMPRESSION END MILL](https://www.stepcraft.us/blog/blog-1/post/the-correct-way-to-setup-a-compression-end-mill-8)
### center-cutting
![](../images/endmill/spiral_sentan.jpg)
Possibe to mill Z Axis direction
### Climb vs Conventional
![](../images/endmill/climb_vs_conventional.png){width=400}
Ref. [Climb Milling Vs. Conventional Milling: 12 Key Differences Machinists Must Know](https://vivadifferences.com/climb-milling-vs-conventional-milling/)
### Name of parts
![](../images/endmill/img_name.png)
Ref. [misumi JP](https://jp.misumi-ec.com/pr/vona/fs/cutting-tool/endmill/about/?bid=bid_jp_v_fs_20150518_5883)
Ref. [Monotaro:coating JP](https://www.monotaro.com/s/pages/readingseries/sessakukiso_0110/)
## my endmill
### Shank Diameter: 6.35mm(1/4in)
- [Shaper](https://www.shapertools.com/en-us/store)
- 1/4" Up-Spiral Router Bit
- 1/8" Up-Spiral Router Bit
- Engraving Router Bit 60°
- ONSRUD (shopbot)
- 1/4" [57-910 2 flute, downcut](https://www.onsrud.com/Products/57910.asp)
- TOOLS.GR
- [RD1600 3.2mm Downcut](http://www.tools.gr.jp/webshop/routerbits/WSRD1600.html)
### Shank Diameter: 6mm**
- [HOZLY 6x25mm Up/Downcut 2 spiral flutes](https://www.amazon.co.jp/gp/product/B073RKDLDR/ref=ppx_yo_dt_b_asin_title_o04_s00?ie=UTF8&psc=1)
- [Yiteng 6x6mm Up/Downcut 4 spiral flutes](https://www.amazon.co.jp/gp/product/B078569SZH/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1)
- [6 mm V-bit 60 90 120 150 deg](https://ja.aliexpress.com/item/32959042009.html?spm=a2g0s.9042311.0.0.45974c4dw4GTY4)
- [6 mm V-bit 60/90/120/150 deg](https://ja.aliexpress.com/item/4000041553956.html?spm=a2g0s.9042311.0.0.27424c4dEn2MuZ)
- [6 mm bottmm cleaning roter bit W=??](https://ja.aliexpress.com/item/4000042417490.html?spm=a2g0s.9042311.0.0.27424c4dEn2MuZ)
### corret
- 6mmと6.35mm共用不可
- [Spring Collet chuck](www.amazon.co.jp/dp/B07K1DGKV7)
- [Festool 488760 SZ-D 6/of 1000 Replacement Collet-6mm, Multi-Colour](https://www.amazon.co.uk/gp/product/B00361121Q/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1)
- [Ryobi corret chuck 1/4inch fot trimmer](https://www.monotaro.com/p/3133/5386/?utm_medium=cpc&utm_source=Adwords&utm_campaign=246-833-4061_6466659573&utm_content=77481174876&utm_term=_380604224319__aud-393932661096:pla-355351810284&gclid=Cj0KCQjwu6fzBRC6ARIsAJUwa2QQZFxpbRJGCyJBFDYp_wWLFMjIB2FnA8sttp__U99webjyxWa3G6QaAjrLEALw_wcB)
# Registors
!!! Attention
resistor[ruh_**zi**_str] : [electrical component that implements electrical resistance](https://en.wikipedia.org/wiki/Resistor#:~:text=A%20resistor%20is%20a%20passive,transmission%20lines%2C%20among%20other%20uses.)
register[**reh**_juh_str] : [a memory location within the actual processor that work at very fast speeds](https://computersciencewiki.org/index.php/Registers_within_the_CPU)
## Registors
- 1 byte = 8 bits = [7:0]
- binary
- 2進数(0,1)
- 0b00001111
- B00001111
- hexadecimal
- 16進数(0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F)
- 0xFF
- $FF
- decimal
- 10進数(0,1,2,3,4,5,6,7,8,9)
- 0d255
- 255
- ref. [2進数、8進数、10進数、16進数相互変換ツール](https://hogehoge.tk/tool/number.html)
## pinout
![](../images/register/ATtiny_x14.gif)
- Pin name
- 5.1 Multiplexed Signals(page18)
- Pin names are of type Pxn, with x being the PORT instance (A, B) and n the pin number. The notation for
signals is PORTx_PINn. All pins can be used as event input.
- PA0
- PORT A
- pin number 0
- Data Direction Register
- 16.5.1 Data Direction
- DDRA
- PORT A
- 0: input
- 1: output
## Program
Arduio Sketch
```
void setup() {
pinMode(8, OUTPUT);
}
void loop() {
digitalWrite(8,HIGH);
delay(500);
digitalWrite(8,LOW);
delay(500);
}
```
AVR
```
void setup() {
DDRB |= 0b00000001;//ポートBの0番ピン(Arduinoの8番ピン)をOUTPUT
}
void loop() {
PORTB |= 0b00000001;//ポートBの0番ピン(Arduinoの8番ピン)をHIGH
delay(500);
PORTB &= ~0b00000001;//ポートBの0番ピン(Arduinoの8番ピン)をLOW
delay(500);
}
```
AVR 1-series
```
void setup() {
PORTB.DIR |= 0b00000001;//ポートBの0番ピン(Arduinoの8番ピン)をOUTPUT
}
void loop() {
PORTB.OUT |= 0b00000001;//ポートBの0番ピン(Arduinoの8番ピン)をHIGH
delay(500);
PORTB.OUT &= ~0b00000001;//ポートBの0番ピン(Arduinoの8番ピン)をLOW
delay(500);
}
```
Ref. [Arduinoで入出力を高速化する方法](https://haizairenmei.com/2019/11/29/avr/)
!!! HINT
// コメント
a = 0; //初期値 代入
b = a + 1; //代入
a = a + 1; //加算代入
a += a; //加算代入
DDRB = 0b000000; //初期値
DDRB = DDRB | 0b00000001; //OR
DDRB |= 0b00000001; //OR
OR
```
0 0 1 1 operand1
0 1 0 1 operand2
----------
0 1 1 1 (operand1 | operand2) - returned result
```
1に指定したbitは、元が0でも1でも、1になる -> 指定bitのセット
NOT
```
0 1 operand1
-----
1 0 ~operand1
```
1に指定したbitは、0に反転する (0は1に反転する)
AND
```
0 0 1 1 operand1
0 1 0 1 operand2
----------
0 0 0 1 (operand1 & operand2) - returned result
```
NOTで反転した0に指定したbitは、元が0でも1でも、0になる -> 指定bitのクリア
ref. [Arduino Language Reference](https://www.arduino.cc/reference/en/)
Bitwise Operators (bit演算子)
|機能|演算子|使用例|
|-- |-- |-- |
|OR |``|`` |指定bitのセット|
|AND|& |指定bitの取り出し, NOTと併用した指定bitのクリア|
|XOR| ^ |bit反転|
|NOT| ~ |bit反転, bitクリア|
|ビットシフト(右)| >> |ビットシフト|
|ビットシフト(左)| << |ビットシフト|
......@@ -14,6 +14,7 @@
## Large format CNC
- [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/)
- [CNC Tooling](./tips/cnc_tool.md)
## CNC
- [Sainsmart Genmitsu PROVerXL4030](./tips/genmitsu_prover_xl_setup.md)
......@@ -39,6 +40,8 @@
- [Flash sound](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips/flash_sound/)
- [ATtiny1614 hello buzzer board](http://tatsuro.homma.fabcloud.io/fabacademy/tips/electronics_design/ATtiny1614_hello_buzzer/)
- [Step Response / CapacitiveSensor](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips/step_response/)
- [Write C language program to AVR-1 series](http://tatsuro.homma.fabcloud.io/fabacademy/tips/embedded_programming/write_c_program_to_avr1/)
- [Register_bit](./tips/register_bit.md)
## Other Tips list
- [Tips List 2021](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips_list/)
# 7. Computer controlled machining
!!! Note
Hamamatsu CNC is using the 1 flute straight bit (Tool_dia: 6mm, Shank_dia: 12mm) by default.
Learn about Up cut and Down cut endmill from the Tip [CNC tool](./tips/cnc_tool.md)
## Group Assignment
> do your lab's safety training
......
# 8. Embedded programming
This week I worked on defining my final project idea and started to getting used to the documentation process.
## Research
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
> "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
## Useful links
- [Jekyll](http://jekyll.org)
- [Google](http://google.com)
- [Markdown](https://en.wikipedia.org/wiki/Markdown)
## Code Example
Use the three backticks to separate code.
```
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
```
## Gallery
![](../images/sample-photo.jpg)
## Video
### From Vimeo
<iframe src="https://player.vimeo.com/video/10048961" width="640" height="480" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<p><a href="https://vimeo.com/10048961">Sound Waves</a> from <a href="https://vimeo.com/radarboy">George Gally (Radarboy)</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
### From Youtube
<iframe width="560" height="315" src="https://www.youtube.com/embed/jjNgJFemlC4" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
## 3D Models
<div class="sketchfab-embed-wrapper"><iframe width="640" height="480" src="https://sketchfab.com/models/658c8f8a2f3042c3ad7bdedd83f1c915/embed" frameborder="0" allow="autoplay; fullscreen; vr" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
<p style="font-size: 13px; font-weight: normal; margin: 5px; color: #4A4A4A;">
<a href="https://sketchfab.com/models/658c8f8a2f3042c3ad7bdedd83f1c915?utm_medium=embed&utm_source=website&utm_campaign=share-popup" target="_blank" style="font-weight: bold; color: #1CAAD9;">Dita&#39;s Gown</a>
by <a href="https://sketchfab.com/francisbitontistudio?utm_medium=embed&utm_source=website&utm_campaign=share-popup" target="_blank" style="font-weight: bold; color: #1CAAD9;">Francis Bitonti Studio</a>
on <a href="https://sketchfab.com?utm_medium=embed&utm_source=website&utm_campaign=share-popup" target="_blank" style="font-weight: bold; color: #1CAAD9;">Sketchfab</a>
</p>
</div>
## from last week
!!! Note
Hamamatsu CNC is using the 1 flute straight bit (Tool_dia: 6mm, Shank_dia: 12mm) by default.
Learn about Up cut and Down cut endmill from the Tip [CNC tool](./tips/cnc_tool.md)
## Sunshine Protection Act in US
[article](https://gigazine.net/news/20220316-us-summer-time-permanent/)
- 2023 Autum -> never change the time
- FA2024 22:00-1:00
## Preparation for next week
> **Molding and Casting**
> *group assignment:*
> review the safety data sheets for each of your molding and casting materials,
> then make and compare test casts with each of them
> *individual assignment:*
> design a mold around the stock and tooling that you'll be using,
> mill it (rough cut + (at least) three-axis finish cut),
> and use it to cast parts
### Assessment
[Assessment](https://fabacademy.org/2022/nueval/moulding_and_casting.html)
FAQ
> **What does 3-axis milling mean?**
> Answer: You should have smooth tilted or curved surfaces instead of
> "steps" towards axis Z.
some flat surfaces and depth -> X
### Material ans Machine
- [Machinable wax](https://www.amazon.co.jp/Ferris-0662-FERRIS-%E5%BD%AB%E9%87%91%E7%94%A8-%E3%83%96%E3%83%AD%E3%83%83%E3%82%AF%E3%83%AF%E3%83%83%E3%82%AF%E3%82%B9-%E3%83%96%E3%83%AB%E3%83%BC/dp/B0081Y5DCC)
- size: 152mm x 92mm x 39mm (real size is smaller)
- Machines
- Genmitsu PROVerXL
- work area: 400mm × 300mm × 110mm
- MDX-15
- work area: 152.4mm × 101.6mm × 60.5mm
- Endmill
- 0.1250” DIA 4FL SE LONG AlTiN 1/8
- Tool_dia: 1/8” =3.175mm
- OverAll Length: 2-1/4”(2.25”) =57.15mm
- **Rough cut**
- 0.0625” DIA 2FL SE AlTiN 1/16
- Tool_dia: 1/16” =1.5875mm
- OverAll Length: 1-1/2”(1.5”) =38.1mm
- **Finish cut**
- Design to think…
- XY size: real wax size
- Final Part size < wax size - wax_wallx2 - mold_wallx2
- distance between bumps凸 & dents凹: tool size > 1.58mm(1/16”) > 0.79mm(1/32”)
- Z depth: 1.5 in mill > 38.1 - 10mm?_in_collet
- Registration Key, Registration post
- Process
- 3D modeling
- Fusion360
- Tool Path
- Genmitsu PROVerXL
- mods?/FusionCAM?
- gSender?/jscut?
- MDX-15
- Modela Player4 (Windows)
- Virtual Modela (Windows)
- [install](https://drive.google.com/drive/folders/1vT6Qu2YWHNU_4Q_TgWwoMA3wRYo0V9G0)
- Casting materials
- Silicone rubber (mold)
- Mold Star 31T
- Urethanes resin (final part)
- Smooth-Cast 320
- color: Off white
- So-strong
- Color Tints for Urethane
- Ref. [last year](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/local_session/week11/)
- [Low melting point alloy](https://www.zairyo-ya.com/products/236.html) (final part)
- 138 C
- [Tin](https://www.zairyo-ya.com/products/ZASN03001.html) (final part)
- 231.9 C
### Preparation
- 3D modeling
- [sample](https://a360.co/3mwu8mo)
- design final part (positive)
- design molds to make final part (negative)
- design wax to make molds (positive)
- Add pouring and vent ways
- make (next week)
- mill wax for 2-3 hours
- pour liquid silicone rubber into wax to cast molds (negative)
- pour liquid resin into molds to cast final part (positive)
## Group Assignment
> compare the performance and development workflows for other architectures
### Todo
- Seeduino Xiao
- ARM
- Atmel SAMD21
- [Seeduino Xiao RP2040](https://www.seeedstudio.com/XIAO-RP2040-v1-0-p-5026.html)
- ARM
- RP2040
- Raspberry Pi 4/3
- ARM
- Broadcom BCM2711/BCM2837
- Microbit v1
- ARM
- Nordic nR51822
- Raspberry Pi pico
- ARM
- RP2040
- Arduino UNO
- AVR
- ESP32
- Espresoif
Ref. [last year](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/group_assignments/week08/)
## individual assignment:
> read the data sheet for your microcontroller
> use your programmer to program your board to do something
> extra credit: try other programming languages and development environments
!!! Attention
resistor[ruh_**zi**_str] : [electrical component that implements electrical resistance](https://en.wikipedia.org/wiki/Resistor#:~:text=A%20resistor%20is%20a%20passive,transmission%20lines%2C%20among%20other%20uses.)
register[**reh**_juh_str] : [a memory location within the actual processor that work at very fast speeds](https://computersciencewiki.org/index.php/Registers_within_the_CPU)
!!! note
Easier procedure to burn bootloader into USB-D11C-serial board
[USB-D11C-serial (Arduino IDE + Xiao)](./tips/FA2022_usbserial_ArduinoIDE_Xiao.md)
### ToDO
### Read/browse one of the data sheets
- AVR-1
- [Attiny3216](http://ww1.microchip.com/downloads/en/DeviceDoc/ATtiny3216-17-DataSheet-DS40002205A.pdf)
- SAMD11c
- [SAMD11C](https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42363-SAM-D11_Summary.pdf)
- SMART ARM-Based Microcontroller
Document what you learn form one/two of the topics
### Program your 1614/3216 board from USB-SAMD11C-Serial board via UPDI interface
#### Arduino Sketch
- Press Button and LEDs blink
- Echo in Serial monitor
- [Flash sound](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips/flash_sound/)
#### Arduino with register_bit
- Ref. [register_bit](./tips/register_bit.md)
#### Arduino in C
- Ref. [Write C language program to AVR-1 series](http://tatsuro.homma.fabcloud.io/fabacademy/tips/embedded_programming/write_c_program_to_avr1/)
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