Welcome! Log In Create A New Profile

Advanced

Configuring Teacup Firmware for Gen3 electronics.

Posted by Adam.m.Nelson 
Configuring Teacup Firmware for Gen3 electronics.
November 10, 2012 09:05PM
I am failing at configuring the teacup config file. It simply won't compile. My problem (as far as I can tell is in sections 4 and 5 the temp sensor and the heater config).

Has anyone set this up for Gen3 electronics?


"Get busy living, or get busy dieing" - Red
Re: Configuring Teacup Firmware for Gen3 electronics.
November 10, 2012 09:17PM
The answer may be here, I'll update soon

[forums.reprap.org]
Re: Configuring Teacup Firmware for Gen3 electronics.
November 10, 2012 09:59PM
Ya that wasn't the issue. Any chance someone can upload their config file for their gen 3 electronics?
Re: Configuring Teacup Firmware for Gen3 electronics.
November 11, 2012 09:32AM
Looks like it's Gen3-weekend smiling smiley Here's another RepRapper who apparently managed to get at least the compilation part done: [forums.reprap.org]


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Configuring Teacup Firmware for Gen3 electronics.
November 11, 2012 06:27PM
Traumflug Thanks for the link. I'll have to try and find the older version of the firmware, and try that. I wonder is a Gen3'er would be able to post their working teacup firmware.
Re: Configuring Teacup Firmware for Gen3 electronics.
December 09, 2012 09:21AM
Hi Adam

I think I am following your exact footsteps, one month later.

I am now hurting my head on the problem of compiling TeaCup with the gen3 config.h, and getting the HEATER_EXTRUDER non defined variable error.

Have you solved your problem, and if yes, how ? different config file, different software ?

thanks,
Re: Configuring Teacup Firmware for Gen3 electronics.
December 09, 2012 03:22PM
actually, pronterface works fine with the 5D interpreter firmware. Provided that you set the baud rate to 19200

I mean, quite fine, on the X and Y axis, but the Z axis can go down, but not up. That is strange... I get a lot of blips and noise from the card, and vibration from the motor, but no movement up.
Re: Configuring Teacup Firmware for Gen3 electronics.
December 09, 2012 04:48PM
Quote

I am now hurting my head on the problem of compiling TeaCup with the gen3 config.h, and getting the HEATER_EXTRUDER non defined variable error.

I'd be interested in a fix, too. Putting such fixes into the Github repo saves headaches for later generations smiling smiley


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Configuring Teacup Firmware for Gen3 electronics.
December 09, 2012 08:15PM
Matthieu You may need to invert the Z axis, I bet its getting a false end stop hit (that happened to me). Did you get your code to compile?

Traumflug I've gotten as far as all axis work, heater works, all sensors work. But the extruder doesn't spin properly... I haven't had time to get back to it lately, but I hope to this week.
Re: Configuring Teacup Firmware for Gen3 electronics.
December 10, 2012 12:37PM
Hi!

Actually, I considered this option, but I ruled it out - as the Z axis homes correctly. Therefore, it goes down, not up. I am confused...

This is with 5D firmware, but not Teacup. It is not compiling on the HEATER_EXTRUDER variable, and I have not looked at it further for now. what about you ?
GMT
Re: Configuring Teacup Firmware for Gen3 electronics.
December 16, 2012 02:03AM
Hello,

I have an original mendel with mechanical endstops using Gen3 Electronics, wired this way [reprap.org] with a stepper motor extruder and i have compiled the last Teacup firmware on Arduino 1.0.1 with the following config.h config.h

Extruder, Hotend, temperature headings, Y and Z axis are working fine but not my X axis.

The strange behaviour is that if i disable all steppers (using the disable button on Steppers Motor Controls on replicatorg0040), then try to move the X axis, one LED of my Y axis (yes, the Y axis!) stepper controler lights up and the X axis stays frozen. Sometimes when i try to move the X axis, the Y stepper makes some noise but both stays stopped.

Another strange behaviour is that the endstops from the X axis stays always ON (checking on pronterface with M206 G code) , dont matter if its triggered or not.

Looks like the firmware somehow is working on wrong ports.

I was looking at the code and looks like the pin mappings and arduinos definitions are correct, right now im not sure where and what to seek for.

Any idea on what to look for? Suggestions?

Obs: The machine works on FiveD, so looks like there is no problems with wiring or hardware.

Thank you all !!!
GMT
Re: Configuring Teacup Firmware for Gen3 electronics.
December 17, 2012 07:25PM
man its hard to seek where in the time line where the support for gen3 was broken. I'm for hours navigating through git trying to figure out what happened but after 6 different commits that dont compile i'm having a hard time trying to find what changed.
Is there any idea on which commit that is known to work with gen3? It will make my life a lot easier to to make a patch and restore the gen3 support.
Re: Configuring Teacup Firmware for Gen3 electronics.
December 18, 2012 08:04AM
There's a technique called "bisecting". You don't go back step by step, but half the way in history. If it works, go forward a quarter of the history; if not, go back another quarter. On each iteration, slice the remaining part in half. This way you're down to a single commit after about 8 iterations.

Regarding the last working commit ... well, the only way to find this is apparently reading the commit messages. Especially the last ones done to the extruder dir. Github shows nicely which commit canged a file last.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Configuring Teacup Firmware for Gen3 electronics.
December 18, 2012 08:13AM
Hi,

I think I'll keep playing with my 5D firmware until I find time (and money) to upgrade to Gen7 electronics.

Less headaches
GMT
Re: Configuring Teacup Firmware for Gen3 electronics.
December 18, 2012 08:08PM
Look at that code change in mendel.c:

int main (void)
{
              SET_OUTPUT(DIO15);
              SET_OUTPUT(DIO18);
              SET_OUTPUT(DIO19);
              
              WRITE(DIO15, 0);
              WRITE(DIO18, 0);
              WRITE(DIO19, 0);
}
Very simple. Removed everything on main loop. Only the DIO18 toggles to ground. Doing all "1" also changes nothing, only DIO18 toggles. That happens only on X axis ports until now. So im pretty convinced that there is something wrong with mappings.

Ideas? I will keep investigating anyway.
GMT
Re: Configuring Teacup Firmware for Gen3 electronics.
December 18, 2012 09:10PM
Problem solved! Its a fuse configuration, the default configuration of sanguino is with JTAG enabled. You have to disable the JTAG interface. It uses tha same ports as X axis.

Go to the sanguino folder (arduino-1.0.1\hardware\sanguino\boards.txt), change the fuses config on boards.txt (boards.txt) and burn again the bootloader to set the new fuses configuration.

Teacup Works on Gen3 boards! grinning smiley

Old mendel back to the job!

So:
Arduino-1.0.1
Sanguino folder (change the default fuses to disable JTAG) boards.txt
this [forums.reprap.org]
Burn the bootloader again
Upload the code to the board

Thats it!

Bye guys!
Re: Configuring Teacup Firmware for Gen3 electronics.
December 21, 2012 12:07PM
hey

Whit which version of teacup is it working.
Please share all.

//SirBj
Re: Configuring Teacup Firmware for Gen3 electronics.
December 21, 2012 01:19PM
Hey

Have just tried the way you describe whit the newest firmware of teacup,
it did not work for me, maybe it is the version, or something i do wrong.

Maybe it can be the software i use to control the reprap, I use the ready to go version of Printrun for windows from March 2012, what do you use??

I am on a 64-bit system running windows 7.

//SirBj
GMT
Re: Configuring Teacup Firmware for Gen3 electronics.
December 21, 2012 04:36PM
sirbj Wrote:
-------------------------------------------------------
> Hey
>
> Have just tried the way you describe whit the
> newest firmware of teacup,
> it did not work for me, maybe it is the version,
> or something i do wrong.
>
> Maybe it can be the software i use to control the
> reprap, I use the ready to go version of Printrun
> for windows from March 2012, what do you use??
>
> I am on a 64-bit system running windows 7.
>
> //SirBj

[github.com]
The master branch.

Unfortunately there is no release version or tag on GIT then i dont know how to say which version is it but the last commit is ba05d6a0cda7e0e339efd3d311b1ad99edb5d02d.

Maybe Traumflug have a technique to identify this current working version and can help us.

I'm using ReplicatorG 0040 and Pronterface (the same as you, March 2012) both working.

Can you describe exaclty what is your electronics, configuration and what is happening?

Obs: are you using 115200bps?
Re: Configuring Teacup Firmware for Gen3 electronics.
December 21, 2012 05:10PM
GMT, was the problem that you had the extruder not spinning? And this fixed it?
Re: Configuring Teacup Firmware for Gen3 electronics.
December 21, 2012 06:13PM
Hey

Thanks for the fast respond.

It is the same version of the firmware I have tried it whit.

And yes I am using 115200bps

Info:
elektronick 3 gen:
Motherboard v1.2
Extruder controller v2.2
Stepper motor driver v2.3
Opto endstop v2.1
Hardware:
drive motor: stepper motor - tested and are working
extruder motor: stepper motor - tested and are working


Config:
I used the config that you put up for the motherboard, and the standard for the extruder controller.

Problem:
The extruder motor is not spinning at all.

Working:
All else is working fin I can even control the temperature on the extruder.

On the extruder I am using the DMOS Full-Bridge Motor Driver A3949 (as specified in the build), dont know if it a problem have heard that they can be a problem. Any ideas on what to replace them whit if they are dead or do you know if it can be hook up to run whit out.

//SirBj
Re: Configuring Teacup Firmware for Gen3 electronics.
December 22, 2012 02:41PM
I am also trying to get my Gen3 electronics to work with the latest Teacup firmware. Luckily there still seem to be some people using this combination. I'm at the point where I have the problem Mattieu decribed some days ago: The firmware won't compile, breaking up with the error message "gcode_process.c:475: error: 'HEATER_extruder' undeclared". I don't understand this message since 'HEATER_extruder' does not appear in gcode_process.c but 'HEATER_EXTRUDER' which is the variable. In config.h the value 'HEATER_extruder' is assigned to the variable 'HEATER_EXTRUDER'.

@Mattieu: How did you solve this problem at the end?
Re: Configuring Teacup Firmware for Gen3 electronics.
December 23, 2012 05:11AM
Hi,

To my great shame I did not solve it, I am still on 5D.

I plan on testing GMT solution whenever I have time, though
GMT
Re: Configuring Teacup Firmware for Gen3 electronics.
December 24, 2012 01:29PM
Adam.m.Nelson Wrote:
-------------------------------------------------------
> GMT, was the problem that you had the extruder not
> spinning? And this fixed it?
No i didn't had this problem. My extruder worked from the beginning, only X axis was the problem. Maybe you can try to check the same fuses configuration in your extruder bootloader.
GMT
Re: Configuring Teacup Firmware for Gen3 electronics.
December 24, 2012 01:36PM
sirbj Wrote:
-------------------------------------------------------
> On the extruder I am using the DMOS Full-Bridge
> Motor Driver A3949 (as specified in the build),
> dont know if it a problem have heard that they can
> be a problem. Any ideas on what to replace them
> whit if they are dead or do you know if it can be
> hook up to run whit out.
>
> //SirBj

You may try to use the 5D firmware to make sure that the electronics side is working. How do you made the wiring connections between the MB and EC?

Im using that way: [reprap.org]
GMT
Re: Configuring Teacup Firmware for Gen3 electronics.
December 24, 2012 01:40PM
extrudator Wrote:
-------------------------------------------------------
> I am also trying to get my Gen3 electronics to
> work with the latest Teacup firmware. Luckily
> there still seem to be some people using this
> combination. I'm at the point where I have the
> problem Mattieu decribed some days ago: The
> firmware won't compile, breaking up with the error
> message "gcode_process.c:475: error:
> 'HEATER_extruder' undeclared". I don't understand
> this message since 'HEATER_extruder' does not
> appear in gcode_process.c but 'HEATER_EXTRUDER'
> which is the variable. In config.h the value
> 'HEATER_extruder' is assigned to the variable
> 'HEATER_EXTRUDER'.
>
> @Mattieu: How did you solve this problem at the
> end?


Try using this [forums.reprap.org]
Re: Configuring Teacup Firmware for Gen3 electronics.
December 24, 2012 01:42PM
If x axis is your issue make sure you have your end stops set right. If you have it set for one endstop, and its inverted the axis will only move one way.
Re: Configuring Teacup Firmware for Gen3 electronics.
December 27, 2012 09:37PM
How do you find the old commits on git hub? I'll go through and try to find the issue with the Gen3 compatibility...
Re: Configuring Teacup Firmware for Gen3 electronics.
December 29, 2012 09:58AM
Adam.m.Nelson Wrote:
-------------------------------------------------------
> How do you find the old commits on git hub? I'll
> go through and try to find the issue with the Gen3
> compatibility...

Hey

if you go here: https://github.com/triffid/Teacup_Firmware/commits/master

all of the commits for the master is listed.
Re: Configuring Teacup Firmware for Gen3 electronics.
December 29, 2012 11:09AM
GMT Wrote:
-------------------------------------------------------
>
> You may try to use the 5D firmware to make sure
> that the electronics side is working. How do you
> made the wiring connections between the MB and EC?
>
>
> Im using that way:
> [reprap.org]

Hey

I have had some problems with the 5D firmware,
when I try to compile the firmware I get lots of errors, and there for I cant upload it.

could I maybe get all of the 5D firmware that you use.

With regard to teacup firmware and the possibility of it being a fuses problem,
what would you chanse the fuses to for the extruder (atmega168) bootloader.

//SirBj

Edited 1 time(s). Last edit at 12/29/2012 12:58PM by sirbj.
Sorry, only registered users may post in this forum.

Click here to login