Search found 428 matches

by dragonator
Mon Oct 07, 2019 5:15 pm
Forum: 3DP printing
Topic: Hacking cartridge HP 84/85
Replies: 146
Views: 29653

Re: Hacking cartridge HP 84/85

One more thing to try that will actually do it all together. I hope I wrote it right, it is difficult for me to test here. I works on port 7 bits 0 to 3, so pin 10-13. Let me know if it actually works or where it gives errors. byte pinTable[] = {10,12,11,13}; //port 7 bit 0,1,2 and 3 char a[] = {1,0...
by dragonator
Mon Oct 07, 2019 5:00 pm
Forum: 3DP printing
Topic: Hacking the HP45
Replies: 516
Views: 298276

Re: Hacking the HP45

I cannot judge whether the pins are connected correctly, but overall it seems like the right thing. I would lower the delay between clock 1 and clear 0 to 2 microseconds, but other than that, it seems fine. Do wipe the head before printing. It will literally not work without it. Other than that, I c...
by dragonator
Sun Oct 06, 2019 1:41 pm
Forum: 3DP printing
Topic: Hacking the HP45
Replies: 516
Views: 298276

Re: Hacking the HP45

Time to pick up where I left off earlier this year. A quick recap of what I have done for the HP45 before the Turret hiatus. DMA will make the printing process a lot quicker. It will place the 300ms+ function to print away from the processor, and move it to the DMA hardware. This effectively makes i...
by dragonator
Sun Oct 06, 2019 10:34 am
Forum: 3DP printing
Topic: Hacking cartridge HP 84/85
Replies: 146
Views: 29653

Re: Hacking cartridge HP 84/85

Now that you have confirmed that the code works, you are 80% of the way there. The 25MHz is going to be the absolute maximum. Two things to explain what is happening here: 1, the very basics, but important. Binary numbers. Microcontrollers work with binary numbers. Each binary digit is called a bit....
by dragonator
Thu Oct 03, 2019 6:14 pm
Forum: 3DP printing
Topic: Hacking cartridge HP 84/85
Replies: 146
Views: 29653

Re: Hacking cartridge HP 84/85

40 nanoseconds for a pin write is pretty fast. I can imagine it being too slow for you, but it is a good reference for me. For the port you will need to puzzle a little in the core.h: https://github.com/PaulStoffregen/cores/blob/master/teensy4/core_pins.h Teensy 4.0 is __IMXRT1062__. This is handy t...
by dragonator
Wed Oct 02, 2019 10:44 am
Forum: 3DP printing
Topic: Hacking cartridge HP 84/85
Replies: 146
Views: 29653

Re: Hacking cartridge HP 84/85

# define CORE_PIN0_BITMASK ( 1 << (CORE_PIN0_BIT)) This is not the command to set a pin. It is the programmer language that defines what bit is the teensy pin. Everything that has a #define in front of it is actually replaced by the compiler. In this case, if you type CORE_PIN0_BITMASK, the compile...
by dragonator
Sun Sep 29, 2019 9:17 am
Forum: 3DP printing
Topic: Generic powder machine controller
Replies: 17
Views: 1248

Re: Generic powder machine controller

That is one impressive looking board. I read that you have stepper motor drivers on there. Do you intend to use an existing motion driver or will you write one yourself. Does the motion run through the FPGA or the microcontroller.
by dragonator
Sun Sep 29, 2019 9:16 am
Forum: 3DP printing
Topic: Hacking cartridge HP 84/85
Replies: 146
Views: 29653

Re: Hacking cartridge HP 84/85

Sadly, I do not know how to write a whole port directly yet. I did dig a little on the forum and the pages, but came up empty. Teensy 4.0 is still rolling out, and not all libraries and functions are completed. I myself still miss the OctoWS2811 library for 4.0 that allows me to try it.
by dragonator
Tue Sep 24, 2019 4:58 pm
Forum: 3DP printing
Topic: Hacking the HP45
Replies: 516
Views: 298276

Re: Hacking the HP45

If you are manually triggering, you will need to open the mosfet. Testing it is somewhat complex, but what I usually do first to not have a printhead in and turning known pins high or low. I then measure the right pads to see if there is 12V compared to the ground pads. This is simpler without a con...
by dragonator
Fri Sep 06, 2019 11:53 am
Forum: 3DP printing
Topic: Hacking the HP45
Replies: 516
Views: 298276

Re: Hacking the HP45

I can provide the links to where I bought. Mouser is indeed American, but has no issue shipping to the Netherlands. The rest of Europe should also be fine I think: 4081: https://nl.mouser.com/ProductDetail/595-CD4081BM96 4017: https://nl.mouser.com/ProductDetail/Texas-Instruments/CD4017BM96?qs=sGAEp...