diff --git a/docs/Instruction/images/endmill/climb_vs_conventional.png b/docs/Instruction/images/endmill/climb_vs_conventional.png new file mode 100644 index 0000000000000000000000000000000000000000..88655beb266a1866d0e66f7ede5447b0b4430308 Binary files /dev/null and b/docs/Instruction/images/endmill/climb_vs_conventional.png differ diff --git a/docs/Instruction/images/endmill/compression.png b/docs/Instruction/images/endmill/compression.png new file mode 100644 index 0000000000000000000000000000000000000000..f1437e5c87a2a6551b6062e0f2f54886dbfb5a19 Binary files /dev/null and b/docs/Instruction/images/endmill/compression.png differ diff --git a/docs/Instruction/images/endmill/img_name.png b/docs/Instruction/images/endmill/img_name.png new file mode 100644 index 0000000000000000000000000000000000000000..178f80640250e44131247e385cfe0768d1b1b285 Binary files /dev/null and b/docs/Instruction/images/endmill/img_name.png differ diff --git a/docs/Instruction/images/endmill/spiral_3hikaku.jpg b/docs/Instruction/images/endmill/spiral_3hikaku.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6bc0b6b5d879e7152da506d0ac6eadeb8b6c5a87 Binary files /dev/null and b/docs/Instruction/images/endmill/spiral_3hikaku.jpg differ diff --git a/docs/Instruction/images/endmill/spiral_sentan.jpg b/docs/Instruction/images/endmill/spiral_sentan.jpg new file mode 100644 index 0000000000000000000000000000000000000000..50a1d8d6a39ef8894c0e04f9e2637341071d60c1 Binary files /dev/null and b/docs/Instruction/images/endmill/spiral_sentan.jpg differ diff --git a/docs/Instruction/images/register/ATtiny_x14.gif b/docs/Instruction/images/register/ATtiny_x14.gif new file mode 100644 index 0000000000000000000000000000000000000000..742047e720368952f3641329930ec3290038c2f3 Binary files /dev/null and b/docs/Instruction/images/register/ATtiny_x14.gif differ diff --git a/docs/Instruction/tips/cnc_tool.md b/docs/Instruction/tips/cnc_tool.md new file mode 100644 index 0000000000000000000000000000000000000000..442e390257f1cbf09f05efd62eb388e1545d82ce --- /dev/null +++ b/docs/Instruction/tips/cnc_tool.md @@ -0,0 +1,60 @@ +# CNC Tooling + +## Endmill + +### up/down cut + + +from left, Up cut, Down cut, Compression(Up and Downcut) + +Ref.[BTMT](https://www.btmt.jp/hpgen/HPB/entries/22.html) + +### Upcut vs Compression + + +- 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 + +Possibe to mill Z Axis direction + +### Climb vs Conventional +{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 + + +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) +- [ï¼¹iteng 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) diff --git a/docs/Instruction/tips/register_bit.md b/docs/Instruction/tips/register_bit.md new file mode 100644 index 0000000000000000000000000000000000000000..e6b5631fa95902eb95975fbbb225fa04047ca9be --- /dev/null +++ b/docs/Instruction/tips/register_bit.md @@ -0,0 +1,136 @@ +# 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 + + +- 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クリア| +|ビットシフト(å³)| >> |ビットシフト| +|ビットシフト(å·¦)| << |ビットシフト| diff --git a/docs/Instruction/tips_list.md b/docs/Instruction/tips_list.md index a40b61c2dd27ec754fbd27585614c9833fa61d88..52704b0b13e8ca20475d77fd8a3e326ec6cdd4d0 100644 --- a/docs/Instruction/tips_list.md +++ b/docs/Instruction/tips_list.md @@ -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/) diff --git a/docs/Instruction/week07.md b/docs/Instruction/week07.md index dc567eb167187b4d45920f660970eb174bb6cadc..aa76be71496a890ebfa011f2ea1608c714aba302 100644 --- a/docs/Instruction/week07.md +++ b/docs/Instruction/week07.md @@ -1,5 +1,10 @@ # 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 diff --git a/docs/Instruction/week08.md b/docs/Instruction/week08.md index cf161101dab49f35cca25324f2335095a320f6e5..aa9aa5f437f49d2b2215e0be268f4941faeee534 100644 --- a/docs/Instruction/week08.md +++ b/docs/Instruction/week08.md @@ -1,61 +1,163 @@ # 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 - - - -## 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'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/)