網頁

2015年12月16日 星期三

meshmixer

產生樹狀支柱的利器

放大縮小:滑鼠旋鈕。
旋轉:按住滑鼠右鍵,再移動滑鼠
移動視角:按下滑鼠中間旋鈕,再移動滑鼠

Tip Diameter為支撐材與3D物件的接觸面。
數字越大接觸面就越大,建議參數為0.2~1mm之間。

Post Diameter支撐材的粗細,建議的參數為0.8~3mm之間。

Density為支撐材生成的密度多寡,常用的參數為10~30。

Base Diameter為地面底座的大小設定,2mm以上。


2015年12月9日 星期三

Arduino SPI 12864 OLED

經實際測試,只要使用 Digital pin 即可
查詢對映 SPI 是沒必要的



文件
網路查詢
實際測試

SPI 12864 OLED Arduino UNO SPI MEGA 2560 SPI MEGA 2560
1 CS D10 SS D53 SS D31
2 RST D8
D50 MISO D29
3 CD D9
D51 MOSI D27
4 D1 D11 MOSI D46 PWM D25
5 D0 D13 SCK D52 SCK D23
6 VDD 5V



7 GND GND



8 X




2015年12月8日 星期二

MPLAB

為了解決下列問題
試了好多東西
更新了 IDE 從 MPLAB IDE 到 MPLAB X IDE
試著安裝不同的 Language Toolsuite
從 HI-TECH 之 PICC_16_9_80 到 PICC_18_9_80
發現 PIC16F877 使用 PICC_16_9_80,PIC18F4520 使用 PICC_18_9_80
還安裝過 mplabc18-v3.47-windows-lite-installer
安裝 xc8-v1.35-full-install-windows-installer
最後發現 function name 開頭使用底線造成如
void _LcdWriteCmdHi(unsigned char cmd);


以下是其中的一些過程,雖然對這個解決問題沒有直接幫助
但是以後可能會用到吧!

MPLAB 開發環境分為 MPLAB IDE 和 MPLAB X IDE

ICD3 更新驅動程式軟體
瀏覽電腦上的驅動程式軟體
讓我從電腦上的裝置驅動程式清單中挑選
 for MPLAB X IDE
C:\Program Files (x86)\Microchip\MPLABX\v3.10\Switcher\64Bit\winusb\amd64
Microchip Tools\MicrochipWinUSB Device
 for MPLAB IDE
C:\Program Files (x86)\Microchip\MPLAB IDE\ICD3
Microchip Tools\Microchip Custom USB Device



使用 MPLAB IPE 挑選 IC

The programmer could not be started: Could not acquire hardware tool communications resources: ICD3PlatformTool SN#JIT104139330

1. Right Click on the project > Click properties.
2. Select ICD3 on the left side.
3. Click the reset button on the right side.


MPLAB X Simulator
1. Select Simulator as the Hardware Tool1. 
1.a Right Click on the project > Click properties.
1.b. Click Conf:[default]
1.c Under “Hardware Tools”, verify that Simulator is selected
1.d Click Simulator setting Instruction Frequency(Fcyc)
2. Setting the Simulator to start at the beginning of main() function
2.a From the “Tools” pull down menu select “Options”
2.b Select the Embedded icon
2.c Select the “Generic Settings” tab
2.d Ensure the “Debug startup” is set to ‘Halt at Main’
3. Menu/Window/Debugging/Stopwatch

MPLAB IDE Simulator
1. Debugger/Select tool/MPLAB SIM
2. Debugger/Settings
3. Debugger/Stopwatch


安裝 picc_18_9_80_win 使用 Lite 版
MPLAB IDE
選擇 Microchip C18 Toolsuite

At safe mode of Windows 8 64bit, you could install XC8 v1.35

MPLAB IDE
在 Set Language Tool 中登記 Microchip XC8 Toolsuite
regsvr32 /s "C:\Program Files (x86)\Microchip\xc8\v1.35\bin\MPLABXC8.dll"