Skip to content
Snippets Groups Projects
Commit 441b8906 authored by yuichitamiya's avatar yuichitamiya
Browse files

add tips bootloader and dogbone

parent d19ff997
No related branches found
No related tags found
No related merge requests found
Pipeline #285772 passed
Showing
with 212 additions and 7 deletions
docs/Instruction/images/dogbone/dogbone_added.jpg

429 KiB

docs/Instruction/images/dogbone/dogbone_assenble.png

961 KiB

docs/Instruction/images/dogbone/dogbone_body.png

298 KiB

docs/Instruction/images/dogbone/dogbone_hole.png

507 KiB

docs/Instruction/images/dogbone/dogbone_interference.png

1.88 MiB

docs/Instruction/images/dogbone/dogbone_joint.png

563 KiB

docs/Instruction/images/dogbone/dogbone_measure.png

373 KiB

docs/Instruction/images/dogbone/dogbone_setting.png

354 KiB

docs/Instruction/images/dogbone/dogbone_sketch.png

386 KiB

docs/Instruction/images/dogbone/dogbone_sketch_hole.png

390 KiB

docs/Instruction/images/dogbone/dogbone_sketch_plug.png

389 KiB

docs/Instruction/images/proverXL/line_test_1-64.jpg

350 KiB

docs/Instruction/images/week07/hamamatsu_schedle.jpg

310 KiB

# Mystery of Bootloader
Arduino [Bootloader](https://docs.arduino.cc/hacking/software/Bootloader)
> **What's a Bootloader?**
>
> Microcontrollers are usually programmed through a programmer unless you have a piece of firmware in your microcontroller that allows installing new firmware without the need of an external programmer.
> This is called a bootloader.
From Instructor and Staff group
>both SAMD and AVR can work without bootloader. For SAMDs, the role of the bootloader is to accept firmware uploads through serial over USB, without any additional hardware. Hence you only need a programmer connected to it the first time you flash the bootloader. But if you wish, you can also keep using the programmer and edbg every time you upload, it's simply a lot less convenient. Arduino stores its binary in a hidden folder before uploading, so you could simply find it and upload it with edbg instead.
> For the AVR, uploading through UPDI requires some USB-serial programmer connected to it, because the AVR itself doesn't support USB. Optiboot is an optional bootloader that can take uploads through a regular serial port of the AVR instead of the UPDI port. But you will still need a USB-serial adapter next to your AVR. This is similar to how Arduinos (ATmega type) work too, they have a serial USB adapter onto the board, connected to one of the serial ports of the ATmega, and take firmware uploads through there.
Family</br>MCU |Interface |upload program</br>without bootloader|upload program</br>after burned bootloader
-- |--- |---|--
Original AVR</br>ATmega328P|ISP |Via programmer</br>(fab ISP)|serial over USB </br> with external Serial-USB board
AVR-1</br>3216 |UPDI |Via programmer</br>(USB-Serial board & Serial-UPDI board)|serial over USB </br> with external Serial-USB board
ARM</br>SAMD11C |SWD/JTAG |Via programmer</br>(freeDAP board)|serial over USB </br> with **internal** Serial-USB function
# dog bone in Fusion360
## Sketch Parametric dogbone by you
![](../images/dogbone/dogbone_body.png)
Hole and pocket
- construction line
- Direction: **inside** the hole
- length: tool_dia/2
- angle: 45 deg
- circle
- Dia: tool_dia
![](../images/dogbone/dogbone_sketch_hole.png)
Plug
- construction line
- Direction: **outside** the design
- length: tool_dia/2
- angle: 45 deg
- circle
- Dia: tool_dia
![](../images/dogbone/dogbone_sketch_plug.png)
## Dogbone Addin
[Dogbone addin for fusion 360](https://github.com/DVE2000/Dogbone)
### Install
Download [site](https://github.com/DVE2000/Dogbone/releases)
#### Windows
- [winsetup_Dogbone_v2_0.exe](https://github.com/DVE2000/Dogbone/releases)
#### Mac
- If you installed Fusion360 directly from AutoDest - download self extracting file [here](https://github.com/DVE2000/Dogbone/releases/download/v2.0/macSetup_AD_dogbone_v2_0.pkg)
- If you installed Fusion360 from Apple App Store - download self extracting file [here](https://github.com/DVE2000/Dogbone/releases/download/v2.0/macSetup_appstore_dogbone_v2_0.pkg)
After insatll, re-boot Fusion360
![](../images/dogbone/dogbone_added.jpg)
### Usage
Design joint t=12.0mm
![](../images/dogbone/dogbone_sketch.png)
Extrude to make body t=12.0mm
Use Dogbone Addin
- Tool Diameter = 6mm (depend on tool you use)
- Tool Diameter Offset may be needed
![](../images/dogbone/dogbone_setting.png)
Measured Diameter of dogbone
![](../images/dogbone/dogbone_measure.png)
Assemble
![](../images/dogbone/dogbone_assenble.png)
![](../images/dogbone/dogbone_joint.png)
![](../images/dogbone/dogbone_hole.png)
![](../images/dogbone/dogbone_interference.png)
## Other Dogbone Addin
- [Nifty Dogbone for Autodesk® Fusion 360](https://apps.autodesk.com/FUSION/en/Detail/Index?id=3534533763590670806&appLang=en&os=Win64)
- 60-day full functionality trial
- can purchase a perpetual license for $20 USD
......@@ -442,7 +442,7 @@ txt|[png.txt](../images/proverXL/mods/mill_2D_PCB_png.txt)|[svg.txt](../images/p
### 1/64
![](../images/proverXL/line_test_1:64.jpg){width=400}
![](../images/proverXL/line_test_1-64.jpg){width=400}
### V-bit
......
......@@ -11,6 +11,10 @@
## 3D Scanning
- [Matterport](https://fabacademy.org/2022/labs/kannai/Instruction/tips/matterport/)
## 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
- [Sainsmart Genmitsu PROVerXL4030](./tips/genmitsu_prover_xl_setup.md)
......@@ -24,5 +28,7 @@
- [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/)
- [Mystery of Bootloader](./tips/bootloader.md)
## Other Tips list
- [Tips List 2021](http://academany.fabcloud.io/fabacademy/2021/labs/kannai/site/instruction/tips_list/)
......@@ -95,7 +95,7 @@ stl -> G-code
M3_hole_test
- [f3d](./M3_hole_test.f3d)
- [f3d](./images/week06/M3_hole_test.f3d)
- [stl](./images/week06/M3_hole_test.stl) (0h14)_4
![](./images/week06/m3_hole_test.png){width=500}
......
# 6. Electronics design
Arduino [Bootloader](https://docs.arduino.cc/hacking/software/Bootloader)
## nueval
```
both SAMD and AVR can work without bootloader. For SAMDs, the role of the bootloader is to accept firmware uploads through serial over USB, without any additional hardware. Hence you only need a programmer connected to it the first time you flash the bootloader. But if you wish, you can also keep using the programmer and edbg every time you upload, it's simply a lot less convenient. Arduino stores its binary in a hidden folder before uploading, so you could simply find it and upload it with edbg instead.
- Startd
- April 13: break, midterm
- first half in nueval
- final project plan reviewed and site started
For the AVR, uploading through UPDI requires some USB-serial programmer connected to it, because the AVR itself doesn't support USB. Optiboot is an optional bootloader that can take uploads through a regular serial port of the AVR instead of the UPDI port. But you will still need a USB-serial adapter next to your AVR. This is similar to how Arduinos (ATmega type) work too, they have a serial USB adapter onto the board, connected to one of the serial ports of the ATmega, and take firmware uploads through there.
```
## daylight savings time
Global
- March 13 US daylight savings time
- Mar 09 computer-controlled machining
- 23:00JST
- Mar 14 recitation: programming
- 22:00JST
Asian Review
- 21:00JST (no change)
## Preparation for next week
> **Computer-Controlled Machining**
> *group assignment*
> do your lab's safety training
> test runout, alignment, speeds, feeds, materials, and toolpaths for your machine
>
> *individual assignment*
> make (design+mill+assemble) something big (~meter-scale)
> extra credit: don't use fasteners or glue
> extra credit: include curved surfaces
### Hamamatsu
![](./images/week07/hamamatsu_schedle.jpg){width=400}
- message me when on board
- Rendezvous point: Tokaido line platform
- Ms.Takemura will wait us at Takatsuka Sta. of North entrance
### Preparation
- Read [Assessment](https://fabacademy.org/2022/nueval/computer-controlled_machining.html)
> **How big is big?**
>Answer: Life size, big enough to show you understand many of the possibilities of CNC machining - drill, pocket, dogbones, nesting, etc.
>
Neil: "at least one dimension should be larger than 1m"!?
- 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/)
- Finish Parametric Design in Fusion360
- Material Thicness
- is not exact number in written
- may sold out
- may change your mind in store
- Dogbone
- Online Local session
- Thursday or Friday
- You should have
- Gloves (you and some from lab and 5F)
- Eye protection (from Lab)
- Caliper (from my home)
- Sander (from 5F)
- for packaging to home
- Lunch
## Mystery of Bootloader
Arduino [Bootloader](https://docs.arduino.cc/hacking/software/Bootloader)
> **What's a Bootloader?**
>
> Microcontrollers are usually programmed through a programmer unless you have a piece of firmware in your microcontroller that allows installing new firmware without the need of an external programmer.
> This is called a bootloader.
From Instructor and Staff group
>both SAMD and AVR can work without bootloader. For SAMDs, the role of the bootloader is to accept firmware uploads through serial over USB, without any additional hardware. Hence you only need a programmer connected to it the first time you flash the bootloader. But if you wish, you can also keep using the programmer and edbg every time you upload, it's simply a lot less convenient. Arduino stores its binary in a hidden folder before uploading, so you could simply find it and upload it with edbg instead.
> For the AVR, uploading through UPDI requires some USB-serial programmer connected to it, because the AVR itself doesn't support USB. Optiboot is an optional bootloader that can take uploads through a regular serial port of the AVR instead of the UPDI port. But you will still need a USB-serial adapter next to your AVR. This is similar to how Arduinos (ATmega type) work too, they have a serial USB adapter onto the board, connected to one of the serial ports of the ATmega, and take firmware uploads through there.
Family</br>MCU |Interface |upload program</br>without bootloader|upload program</br>after burned bootloader
-- |--- |---|--
Original AVR</br>ATmega328P|ISP |Via programmer</br>(fab ISP)|serial over USB </br> with external Serial-USB board
AVR-1</br>3216 |UPDI |Via programmer</br>(USB-Serial board & Serial-UPDI board)|serial over USB </br> with external Serial-USB board
ARM</br>SAMD11C |SWD/JTAG |Via programmer</br>(freeDAP board)|serial over USB </br> with **internal** Serial-USB function
----
## Group Assignment
> use the test equipment in your lab to observe the operation
> of a microcontroller circuit board
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
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