PDA

View Full Version : [queued] 3D Printer Teensy 3.6 controller board



panagiotis96
04-12-2018, 11:11 AM
Hello!
I am working on a new 3D printer firmware working with Teensy3.6 3 years now and here are the results so far:
-32Bit controller board (Teensy 3.6).
-250Khz max frequency on XYZE axes simutenously.
-S curve motion profile (constant jerk).
-User friendly settings interface.
-Working only with sd card (No serial connection)=portable device.
-True arc movements (not segments) with s curve motion.
-Extra settings like E axis time shift (filament pressure hysteresis)....

It is only tested on windows for now, the app has not released yet. I will upload the source code (open source_GPL license) and the compiled on github.

https://www.youtube.com/watch?v=NLXnhVJzftI&feature=youtu.be

KurtE
04-12-2018, 03:53 PM
Looks like an interesting project. Are you doing it for your own usage, or as part of some product?

So you are currently only supporting SD input. It is sort of interesting, that with my current 3d Printer (Printerbot Metal Plus (https://www.adafruit.com/product/2302)), which has been discontinued, the controller for it supports both USB and SD input. So far I have never tried using the SD input. As I am still pretty green with doing 3d printing and I usually still need/want to babysit it, to make sure that the first layers stick or...

For the heck of it I contributed to a $99 Kickstarter 3D printer (https://www.kickstarter.com/projects/robotic-industries/buildone-99-3d-printer-w-wifi-and-auto-bed-levelin), (I ordered an upgraded version). With this one you have the choices of SD, USB, or Wifi... Will be interesting to see how I work with this one.

Have you looked at any of the other 3d printer setups based on Teensy?
Examples I have seen include: https://github.com/Flydroid/Teensy-3DPC and https://forum.pjrc.com/threads/40773-LCD-touch-based-Teensy-3-1-based-controller-of-Printrbot-Simple-2016-made-open-source

Will be interesting to follow your progress. Again looks like fun!

MichaelMeissner
04-12-2018, 05:37 PM
For the heck of it I contributed to a $99 Kickstarter 3D printer (https://www.kickstarter.com/projects/robotic-industries/buildone-99-3d-printer-w-wifi-and-auto-bed-levelin), (I ordered an upgraded version). With this one you have the choices of SD, USB, or Wifi... Will be interesting to see how I work with this one.
I backed that printer also (BuildOne). I am wondering whether it will be a full year late by the time they ship the printers.

So far, of the various kickstarter campaigns I have backed Paul's two kickstarters (Teensy 3.0, 3.5/3.6) have been the only ones to ship near their estimated time. Of course Paul came at it as somebody who had already shipped products before and had the contacts, etc. Now, I realize that for most of the people, kickstarter is where they learn how hard it is to manufacture products in quantity, particularly with remote factories.

panagiotis96
04-12-2018, 10:40 PM
Most 3D printers run marlin(based on grbl) in their hearts. Even 32 bit 3D printers firmwares are based on marlin. In fact those firmwares work in the same way only the resources change, Gcode commands are sended through usb,sd or wifi and the microcontroller does the hardwork. In my case the hardwork is done by the computer and the results are saved into binaries, the microcontroller only distributes the saved bytes like a wav player no calculations at all. The advantage is that the computer can solve complex mathematical equations really fast and the microcontroller can distribute those signals with ease (even on 10 axes) at very high freq. So for now it is only working with sd card like a wav player at high freq, as i said. I have tried trough usb but the max output frequency was low (4KHZ) because of the slow data flow,small serial buffer, handshakes....

This project is for my university thesis and for my own usage. I plan to release it and make it open source when i finished completely. Now i am making the frame i will post an update video in the next days!!

panagiotis96
05-19-2018, 06:50 AM
Here are some pictures from design to contruction and finally to print!!

First i designed the whole frame idea into a CAD software.
Then according to the design i build it. Only the frame cost me 15euros(cheap solution).

https://camo.githubusercontent.com/9b0abc72cf369d74d5a2c0fe7ce4cb67241f3af0/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f4b5857326658353237514539795f5f4b 3079766456715a316471457a5956596b525873645673366939 4178773751426a38555757445a2d6d32704b38593352676d58 4939464761443252475f4661554f5a32557569445f4c494138 494447344f67345a35585271724b6b6c32584d5f377a765368 59487a4b4f5156646f5f49486c39762d456465645237414a62 79395255547438436a3264696f57346a4534534d7858433769 4c4e63334d7a6a495646354f5635396c764177784464704638 374848444c7562394b302d7a4c326242414d6c3463356f4239 693638566d5f3755386b394b565a496e45385341653776417a 557155435f694d4d6e6d6755377361377a7350436c50624833 772d79554565533543317842785356514e71624f526b385243 32337172706362674b6c4968307357496d6f644d3150656977 583844426b57354a6d35723946754f344b666e5467396a316f 796a48453238536b316546535a584e73476354787479584144 7372534d684d543963323742714e756532396846382d487343 6d7a45383163305942746b50426b576a437635725a4a5f5153 58344f2d37386c57675f543752344f586d5f32694553713543 76787930374274323144327479346f4f495758686670454e77 79706c6839614b626f6246495045752d7a47634d4771696e36 357a7374663142394b615845466a33646c346f6f3865643242 437654717330715459736b47414653774f4d4234505854704f 38543179325452672d633331613179725336384836632d3651 5a4c37477375576242474556753049466530325175394f784d 465a394659345376474a71564361662d3579622d6534413d77 3835302d683633372d6e6f
https://camo.githubusercontent.com/77cbaad40cf4d33ca24223b524632dc20940e602/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f536b464e412d2d42795a675334766f31 5970356f6d436b71664b77344a305f447a41425a783647304d 42496e706667657755645042676a476a65326d4c336f4e6d37 6c45647339776a774f7a646d4e5a52564c7556797130363968 663878765f79385547665949635952394e5a64396f3962776b 67596773454e6f7077376768647a7a48656d744b4b456c486a 744a7a644b774d6d43415977576d593861446a3357427a6c51 51493839487359394f527441456471706b4c67715069577846 35636c5a426330324b764d2d7644564e386d30774c396c4378 66594c4f35594e46566c7058333632693332686f682d303957 632d745a58625051544c53545675315265514b696e37324578 4e7757685334324a427868667541434b7553752d627a515150 39423176304e4f567a6e564265484267373678613773535362 317132575f797965767a61474f655172685958487a77354243 636453666c64526c4f63687134374c5f4f5967416f436a3172 676c39756270417241744958306351314d354159346f584b4f 704c657a47583751504f4a595f716e6e503463454b36464379 564c53745f6a4364526f306c525437777272424e586c437951 70586f71424f4d643942673049457262617a72537671543769 5733673035775044446b50716667637a4a56703555576d3633 686871654171535562327648736b63637835724e6b7451426f 3672444d6f4567735063756a6c393956653745574e62476856 7153596a4771586e7445586938577061756949373067706c33 4249685463647755757467514669315f487166664765627532 3156754e74626c6c68394754594c316d727961374a76673d77 3835302d683633372d6e6f
https://camo.githubusercontent.com/b81e050694b3741c1b470bb6c28e0c4367190a80/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f52655f56735350652d56634c61352d37 792d6569746f4244356e61654b6970693368636a3759514646 5f655a757273784c6a713538795331466a4d623673537a4168 435a3255744752564b636e55334c687541505a77665a516253 46747839756e6478395649625376793976785038536a62494d 4c6738454c36724e35414a594157454a504c47646543566f53 663348663937547045683273766d4765523375783444525434 34725a5f305454767772545851597255646d4c61427845784c 2d67546b5178545239504f3762726853575a76386a4d4e466f 7a456835576761516863375138417a6275355370734535716d 44386e5a67684c766930583466535f393331744458496e6141 586f6274494a61714830314c33716d555557576a352d706832 6c3451794d66614e4b6f563978727041446a2d784953575257 54626f6663655a46496f51382d50513537676f514b62375f33 584737623678686f396b5f4751316f2d774258637943684e59 4b3551446c395775676c306570543332706a557a7447336e47 6b327867474c5837795f353358394b6a4d6b6b356571507476 55447465716c5150496e63627244365076567669374f6b6a38 374758654355324a656c572d6c4a3534636332616853707653 623232744d3254782d364b6c785747643948306f334a71614f 34524f764d77384e336c4f4a524e5133656246346c30306a69 4c2d5476322d696c6f3345434661496b4d2d72364645773738 6d736d73484679483245624a314a394f4c616d3035544f2d41 7159556857315877666972666f4c7762557132486749456473 32345241517844696d75424441775572667848547636773d77 3835302d683633372d6e6f
https://camo.githubusercontent.com/d5d32952d2fbe97d5a1455cf9b3d2829b9e9944a/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f6c786253326c7171507a593976783048 52536b505a52675841615f4337757961347155687a756b4c48 5436726c6951544a6b4d5659744f65327244414e746f4b3471 6f6749315f435a64466d416e4f565351337345715f79754d4b 546b66384e357671774c7862717359796d7a766a502d536879 6c7a4e74797a4c446248534e5164796876546a5f7a70576847 656b736c306239446b4f47536531706f4639776a71424e7368 354d38754e4543326966505a756f582d684863755642497836 6d626a745a5656517a55586678624542654e55396141796d79 367265784642416d6349643761585036657a79784e376a425a 746c463657476c6754377a714d6830567673485a3057767543 707a557344596c486d6575532d4972776b43523751525a3657 746778754e5f386675354c5541576d7568696b7744624b7942 337779316863517467737151554b3433304943596f5461454d 716c4d6f7055766f45473376544c5f3772747a7a76584d5041 576146772d4335676f675f41524d4362675749777663534547 52427a4b53384c6d5f6c786a53757a37574b777a575652434a 3346307a3272586a5f694d51384c746c4e6a42656c6f436c54 49464375395738764e4f324c49465835705064504c444a532d 30496341757a77743651524d35452d4d384f5f586c34455843 737838485f71325f3242465059434d6b3270734e3166413354 4f72466831797076497072724737643430523142573454685f 7835734139472d734661416d783555536d6c6d306258343549 6d6a6c5576614d7a666a6774796f5776504d37546e764d6f7a 444d52523577366d6976735136785061564a3858756d673d77 3835302d683633372d6e6f

Some temporary solutions before get the printer to work.

https://camo.githubusercontent.com/7809532d49dd507c0a01cc9b50d4203d9b1d0600/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f4367336432443364776c53513752704c 4152664665697662705758555a77317873323434625364785f 774c4a675532775166394335316f5f433036524d716e59635a 71453232745054534e765839627747317a575156755f56786f 4e66506a484c306c693758666957726438503336776f6a6370 43484e4c525972654e79766330756c387a5f4d454a44523559 476f6534635731436f68424a73766d6b416668473935317633 634b5849464a776c593232576448716f386c674948676e4a73 6c666f7a42735f7359756c5565787a425f696450465f45734e 64514d666868794a4b41316c554a45765a504d62376f79654f 47444a38434e556438504b4c4377484156515375476f515645 6645556d747679556d65655a4c707a314e4f68665a2d6f4b62 43414c4b714d3449683031785431594b35783244434d535239 474c38766863546e5a626f7a334943554633364b66475f7938 6d774c776f68424271685264574964446a30667a3430566e55 4a536a5757736a6d684e675335323856794e7a4b5176567930 4f59743877436e386e41765f66346237664438724949695f72 624c383870696652556559796d703235356656725846774650 596b747579736b4a2d763369647676633644775645464d2d63 6b457336362d496a565836536656306c656b4b306c506a7458 34666763684745624d66796b71366e596a434e36784e324735 6c584c44662d344a34524157613238634658566a61667a3236 544c2d386e654c366f676848385a694b4e502d4d4567765841 747663374f68524f7058765f716342622d4268645275735435 716467505551703241364230735f306b6b4f76514837673d77 3835302d683633372d6e6f
https://camo.githubusercontent.com/aa59f65c2ba8cd721d77e2fc9af8647fc4ee5308/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f744e7065674830626f61417050426770 41374c306d527636414e6e3954723369416f32443330764d31 393270656f4c41505f424c68714d7a32456e6a65396b616258 77616a30394668585062627a31746858336e43435734756656 45476161514a33486453784657655a5973314c427247796547 51516a364733676537495754336566667850347932304f6f6a 756e4146727a624741672d767130646c73546a394c48715f51 34615270636f366a563533414b625778356973725a5f494136 6d6768563542535431794f596c517049363479686f48426d69 3973534c5979773132484d4132414d44745f37503238724542 664f746a774d774366306a446a3546374f7154646174456d64 3351784245585063474a796e4568757a4b5365356548774655 2d5343316857494f466d484d336336397471334464576b3458 4b6c50644135734d74772d4b446b6a574170347a514e486243 314a315f464a2d51745f433278466a55615530366231375748 4a394a2d38482d5a6844684f436f36677a5471354c74587351 6c557172574e4b42675734344b4757653631596245396a7437 626e4d63367976776a67683935416855644356524e74744578 68334f366251587a4b36633366534e77576e66794c47314e4f 7679656d6e77636864673477754244584a4165434d2d487035 38654b3679454a53666c694c4c5638466e62525462666b3572 685a5a6e4b364547727a617031745972574968624f6a794b72 5a724d654d714c416b633131514c476a357279377a44385730 35746f5759556c785f6d4e436244374b5a774b342d4f677756 394d6b4870344a43424b324279527538775a76557130413d77 3437382d683633372d6e6f

Soldering the circuit onto a perfboard.

https://camo.githubusercontent.com/01a22ef71182ec304172b2b6a3184732e5a531ed/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f5a77484a4d433063675544456b626e48 667a7a486f6d4137426548765658715a43777241535a483073 744d485f7179453334504e4350646e65594b73486d49397a43 54433655766b766866702d5936564848336672756d4d366e4a 474a5832435f48593577447a613369334a6d57417a54593443 675f7a7730637649366b755044447170434b7178614f726852 565063326c4848736575644470574a48505754744643537265 67436b4e4a5679346f436358774f327a4572372d7443343771 5338444738354f47356b576b6561667a2d4a33763248387873 486349383862476e6d7651512d5379555f3664733154585856 6956365649425f783849575f634a7343507975464d7468476c 396f58385a6d374b306442534d57554e547a4e367030367731 624f6e393554674c6157344b774c34384448664d6d33485049 794964472d57644275616d33637a7344654264394f6d4f784a 5171574659614e6545456d68752d414d6c4769644e6b6a686e 55736755684a5f2d5553616f54374e304853414b684d653276 3959554e4b5147707457386e6264593370724d3733487a5245 765255476450322d375045576a52474e41587179344f557051 7a756e654b2d49796a5f514d516d723442624252567958666f 314b4e5035754a65646944797278456b4d4e384830632d3732 7772707a51485f6971516a36457262317249664165356a7759 515468364e41303859624a585378457964516e556275376230 4a706f373968433056494865394d6f6e54387a5f55454d7654 796777777a51717951625551384e6c4536654e303164577070 7152416f3942323979714c38503157317863566c7165773d77 3835302d683633372d6e6f

The printer printed itself.

https://camo.githubusercontent.com/2c5b095ab86de6e72b24fc2e4f11f220fb4fb306/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f3830456b73763779645a55513430465a 7843685351583643506f3146766a792d6a725f546451443041 2d7432703372374d3473635749335f736c7233624b5f46646f 6d324f7261394e6853357577686a774d465337732d65516b38 32536569506a5f437a6452756d797961746757374272587a68 6d517948707963556136316c433649526a4c334f6b326b6a61 33517a44592d6f6d57785f654a6258793364616f596c545167 625433425871482d4b553742444f4d483235356d774974576a 4f754e3266767a6556354844514a4d4a6c5476753331346143 544c335656575956685a7244725542315272785a3255313673 47626f5571676c7748646c763142307268365a51494a68516a 746a736a77655a5f38566c4e67676c5a594c5361794e515131 6d5455464b7058624d5a704d47713537454d657053576c706a 764d696d512d624c566e4c37393772306c6d544163364e716c 576c38716c6f727736464f31753477767335306e4f74455f52 7a5336654e42484d6b713544612d4476624b7243596f7a5745 66426462654f59363379457062396775644274546e45304137 4266712d6c33703459725457366a7761656955444475613376 67583354564a5274796d714b7a714f6846386d675a58324b74 7964566172464148573565496b36786e436f336a4175377858 68564b4768365862767a5a434e356c4c63493570764d35454a 78616e3969346544464f65714475512d5777774452666a6133 553472796874543133654364694c3639766173503839667263 35764f337a4a6c7568346f6c336a6b75703837726765623357 456a65654e6c5370665651466464786a54777056454d773d77 3835302d683633372d6e6f

In order to print, import gcode file into 3DHex software and generate a binary file. For the calibration cube the calculation time was about 5 minutes.

https://camo.githubusercontent.com/7faecb9db8e334ede11a676469b30ac487bb9766/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f74336f355249774c3370753966725559 32796c6b4a6c727958634c66675a433648614b42505a685a63 4530535a4f6a426f7277714145636c477472635a484a42784f 5a446e2d644f34556e45363154394b465f3158325f3673644e 36665a5751676b6a494558517868424478455142384250664b 57455753536c684876555f365a384c73694d4e385f6845594d 58337355686d4c673347654569434e4d6f757770514b384c48 69747030325a51544c68705564373233466b75524566496371 68716f5a597176654a7668486d484a454b61767477746c5a61 636f74536873727033796347703564717177367a6a59776151 7368304a705a5f5f364433796b3250525258776d377053664d 667463314a6e6576764a646e44663045664445695065665970 7463437976547a62506735586d4b4d6f4a466e734a4c4f314b 5747315332522d654c38524a7a59526a426c58793358335368 684c585858766164423477414234656f5861754d3864654b42 5f54546d6377476a5447594e4c7958544b6768755067553878 512d6c534b45334d6932485f7432463350723361614d4a465f 557766644969736f3371346979444c6145666c6b434f614830 46683975324d327151464e6a343836652d6834593744705235 6a4b77324a5948706c616e2d416e4f32783873464b714d5f6a 63396d6d4a7a656544684c2d3757636d6d456d593165666c69 683868705f315032777070656d686f55417033436139506933 7057794138644a5344517a6c396c6556733973634475455931 63765252627470665a5265517141354c38576e5868786b6358 6a4e51367a6133585633394761515950496c336f5364413d77 313139352d683633372d6e6f

Then copy the .bin file into the sd and print.

https://camo.githubusercontent.com/fed8f9d4200ee4a93dac37d8cc8a4841647503a8/68747470733a2f2f6c68332e676f6f676c6575736572636f6e 74656e742e636f6d2f685a57627134344e4f45454a30326f55 7562525763574d49553756392d67465767507369424e7a6b57 74433151517037516a655446375a5f5f616f5f5a7839627872 44336656444f36643644695570474d514a673374746d6c5366 3855717062483578684c6c71764331585f4a6f414b51486575 63363965546533324f30567a6d4f6f614d7074493039395f79 524944544c5369663436674155614a69757972414145424542 6355374f443663685f3365786c37466f4f51744b4139686470 743931752d33436c44617943624a7843794276537939665273 67676174696264696a5972354b6348317249696a346a5a7264 7141347258596f6175514473326c4677354267466c3344575a 6d554c52434834646b33516d6b387542644b4d395150422d56 353645746f4868334244636f69733234615166487775497575 77366f594846777a794b68326e4e4c4642635f714543767567 564261754c325f35334c54674b6d42365a2d65506135577243 71636c5a654a68365a74677765647767617679477933306172 444f4f486b71516d7656517455697049465a545534454c7346 6d51516e4c6b38416b6853695f59537056412d4c5933786c6c 776934442d694f35374d756d36415a706e4b6e4835555a4c7a 36656b75656f384b316c345a72767661643859426952775131 35635177306770367a7a696e523666684e67485143476b5245 4a38747079326f78626c4c38687444594650504144456a4c4a 33394d4d413035336d335f6e6b4a52415a304d67753359664f 4d68794d4d4f4f4776715841504e42337356624f3773576735 46316363684d7841664c384c505f426250455a557a6f513d77 3835302d683633372d6e6f

Soo that's it, a fully functional 4 axis CNC running on Teensy 3.6 board!!!
The source code will be released in a few months on: https://github.com/panagiotis96

You can also watch an update video:


https://www.youtube.com/watch?v=ADfqjHwPVvA

panagiotis96
05-21-2018, 11:32 AM
https://lh3.googleusercontent.com/JWJ8QWRU6uVkJHe7VW1C6XoLJ5CE_ekPUN-MuwDOYkoycG33ql3YlcVZEphBrbyC7ZPQRNx8fGaWal5dbi0eI SAYr8OexjRZ33o_k87e2thip85CWS3tuGEW5VMPa8Bi5hqHvV7 U=w2400

https://lh3.googleusercontent.com/h-brRtmdS58aIR9NvvjVwBgrhSkoJ_ol7uZnaLxJ74EzQBcZb2A8 k2oNzI_JVB4_9ZDmPbCUA9Ra2lg6a1ZpyCYGOPAnqUsrKgszVf QDGGg33Fl_gQp_po5fJazr8-sGft2aUmOC=w2400

https://lh3.googleusercontent.com/zcA4rZ-MoiqQc8GnqgGm--UND8mq4w7U7wITe4vOxxWMGA9f1ueJElUQfQiMEt4t6n4jsjw6 glkF5KvZSiKnbvlYoUUYhp6MtNoVxDSKeEJ-5uzs42QVEUHlakvaAhC8PQwQxomI=w2400

https://lh3.googleusercontent.com/B4cPpGd_-x8T2-QIrNdoEmENIW3zKO8u7R4ehkpZYBze-yLOUXh4iZgK6crWUQZGmwjUKaSz6S3Gp_Flo_NyJhcrAUBKQ0C Pe0uAVzYR8XRNFbCR1yMHe1-layTeyzgKjoDMG7GM=w2400

https://lh3.googleusercontent.com/5mtIRyliv4jX9Jj5d4fGI_X5HQpbfy0Jb8VdF3kYTYB-lzc6UvtRRCuwgwCtDWnmz16XVBfu-Q_uSshaAtfjoWCPr1ulqEcXtdNtorESkeI77NsvzDzPO5DWiAb l6ZKlWh7Nz7_j=w2400

https://lh3.googleusercontent.com/R2P8l74M3Gv5uiotaWt91A1rJ_BkJC-W07wCj0D3y7sH1k3VCeyqE2hRztko6Zx5ZWPvibIaVWONjzf8E BZwS_3_JSlVdqY3aLLwHo9uGvvwQq6fdzUbR2zY04uUY-PzR9M1aNJd=w2400

https://lh3.googleusercontent.com/Ct0JsqsSpSYZtM6fKh9DHXCc4ufe0RpRdlM-5Q0nrJETCsJNZeeC_lMefEXgUORTVRmAjD125WXz0Bm99wOfKb OfOVmaeFLbhUc8cr4Pnqpv9qlp35qHAsz6-Ncrk9uL4VFTYTYb=w2400

https://lh3.googleusercontent.com/6Z0344iH1Vd88R0oZmkJ1nI5jQwcOcIyvE5p12YZkeuygvNI4T rO4ND9l3f3iNgBUV3-aKrqTRLC6afQpGg2qsyzrcVsvm48Pty_bMK_XwTsI0DeYUU6eR Xh9BIoVuaMWz3BZtJv=w2400

https://lh3.googleusercontent.com/Xc4EqM5zZPF290mU0TT3bDDL-Pf9YQgpDbeeNlueweCvzuaoQMKIcjysUSvs406kNW_HS_nXHhq QrVIDG8IFPb4hqAZXJDcriJMsflBMZ2uw5S-Xa-GlO6b66kb5tfGXPM752lSbaw=w2400