Quantcast
Channel: Reprap Forum - Sanguino(lolu)
Viewing all 1033 articles
Browse latest View live

Re: BLTouch not working on Anet A8

$
0
0
I think I did but I don't remember though when exactly in the process I did so let me try that again when I'm home tonight and I'll report back. I started installing a new electronics housing for the A8 last night so it might take me another day to get everything back together so I can test it.

Thank you

Re: BLTouch not working on Anet A8

Re: LCD Display probleme after upgrading firmware

$
0
0
#define ST7920_DELAY_3 DELAY_NS(300)

Melzi 2.0 connectivity issues

$
0
0
Last week the heat bed of my Reprappro Huxley shorted the power wires, which caused the power adapter to shut off immediately. After screwing down the wires again, I plugged everything back in and got an "unrecognized USB device descriptor" message from Windows. The hotend fan turns on, and the cooling fans twitch, so it appears something is working. I switched the Melzi board to USB power, and tried re-uploading the firmware, which worked. I switched back to external power, but still got the same results. I checked the voltage regulator, and it's sending 4.93v to the ATMEGA1284P like it's supposed to.

I switched the board back to USB and plugged it in, and Windows was able to recognize the device. I can even connect to it in Pronterface, get a response from M503, and the thermistors are returning the correct values.

I can't figure out what's going on here. I set the power jumper to USB, it's recognized. Switch it so that the 19v adapter is sending 5v through the voltage regulator, it's not. I've looked at the board schematics. 5v is being directed through the jumper either way.

Re: Melzi 2.0 connectivity issues

$
0
0
check voltage going to FT232L the usb serial converter, as this is what your computer is really looking at. It does all the USB stuff

Re: Melzi 2.0 connectivity issues

$
0
0
USB power only:
Pin 4, VCCIO: 4.43v
Pin 17, 3V3OUT: 3.35v
Pin 20, VCC: 4.43V

Adapter power only:
Pin 4, VCCIO: 4.89v
Pin 17, 3V3OUT: 3.35v
Pin 20, VCC: 4.88v

Adapter power, USB connected to PC:
Pin 4, VCCIO: 4.87v
Pin 17, 3V3OUT: 3.35v
Pin 20, VCC: 4.87v

Re: My mods for curing 5V USB/7805 problems on Sanguinololu 1.3a

$
0
0
I made a cut at the 5V USB Trace, and added a 4k7 and a 10k Resistor as in the Datasheet of the FT232RL (6.2 Self- Powered) and soldered a wire to pin 19

The datasheet can be found at: [www.ftdichip.com]

Works great but the printer has to be powered by 12V all the Time.

Melzi 2.0 with Marlin 1.1.9 endstops are not working

$
0
0
Hello there!

I have a Trony P802 which was working fine with the factory shipped Reprap 0.91 and with Marlin 1.1.9 which was compiled and uploaded by me.
Both versions worked fine, until I made some changes in the source files, recompiled it and unfortunately I uploaded the wrong binary without the bootloader.
After that, I successfully reuploaded the working binary with the bootloader, but the endstops - at least on the y axis - has stopped working, autohome fails and the servo motor just tries to move the heatbed after it reached the top end.
I found that part on the wiki page: X axis only moves in one direction and/or Endstops do not work.
I have the latest Sanguino version (1.0.3) in the Arduino builder files, so the fuse settings had to be correct from the beginning, right? I'm asking, because after I reuploaded the binary, I had to also change the fuse setting with avrdude, because - maybe - all of them were FF. But this didn't had any effect at all.
I'm afraid for some reason the controller doesn't applies the written changes, can the bootloader overwrites it?
I also had a try with the full working Reprap dump (created with avrdude), but no luck.
I also had couple of other ideas, like uploading the bootloader with ISP and upload the whole firmware on USB an so on...

[user@comp]: /media/ramdisk>$ sudo avrdude -c usbasp -p m1284p 
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e9705 (probably m1284p)
avrdude: safemode: Fuses OK (E:FD, H:DE, L:FF)
avrdude done.  Thank you.

Thanks

Re: Melzi 2.0 with Marlin 1.1.9 endstops are not working

$
0
0
The fuse setting depend on the board. the fuse setting that comes with a generic Sanguino are probably not the same as your board as they do tend to leave jtag enabled

leaving the jtag enabled will disable the standard IO functions for the jtag pins, which is used as standard IO on reprap.

But the fuse values you show do have jtag disabled
see this fuse calculator [eleccelerator.com]

Re: Melzi 2.0 with Marlin 1.1.9 endstops are not working

$
0
0
These values are coming from the reprap Mezli page, these should be accurate. Unfortunately I didn't have a single line backup from the previous sessions, where I used to execute avrdude to figure out what would be the original fuse settings. I asked the FB community for this printer.
Do you think the bootloader settings can overwrite the fuses which are burned into the empty controller?

Thanks

Re: Melzi 2.0 with Marlin 1.1.9 endstops are not working

$
0
0
Arduino IDE always over writes the fuse values when it writes a new bootloader.

The only way to avoid this is to use avrdude directly on the command line

The Sanguino boards.txt file defines the fuses it will use [github.com]

for the ATmega1284P (16MHz)
atmega1284p.bootloader.low_fuses=0xFF
atmega1284p.bootloader.high_fuses=0xDE
atmega1284p.bootloader.extended_fuses=0xFD
atmega1284p.bootloader.unlock_bits=0x3F
atmega1284p.bootloader.lock_bits=0x0F

This also disabled the jtag

I think your chasing a red hearing

jtag uses 4 io pins
18 PC2 TCK (JTAG Test Clock)
19 PC3 TMS (JTAG Test Mode Select)
20 PC4 TDO (JTAG Test Data Output)
21 PC5 TDI (JTAG Test Data Input)

This would break arduino pins 18,19,20 and 21
Ie all of the following would stop working
X_STOP_PIN
Y_STOP_PIN
Z_STOP_PIN
X_DIR_PIN

Re: Melzi 2.0 with Marlin 1.1.9 endstops are not working

$
0
0
Arduino IDE always over writes the fuse values when it writes a new bootloader.
At the time when I used the IDE to upload the correct binaries - after the bad flash - it just left all the fuses at value 0xFF.

The Sanguino boards.txt file defines the fuses it will use [github.com]
I just found, the fuses are defined in the Makefile, I thought maybe the precompiled binaries (like: optiboot_atmega1284p.hex) store some bad settings inside, and this overrun the fuse settings burned to the controller.

I tried to power on the printer with the wrong fuse settings and of course it was working like in the description. All the axis were moving just to one direction.
And finally I realized, the Y and X-axis stepper motor cables has been mixed, thats totally my fault.
So Dust, thank you for this detailed explanation, I really appreciate your time and helpfulness.
I wish you a nice day/evening!

Re: Reprap Discount Smart Controller Not Working

$
0
0
It looks to me like all elements that create words and figures are turned to maximum. Thus if anything is at your controller you won't see it i.e. black writing on black background. Try adjusting the pot on the back again until your printing blocks are toned down.

Re: Reprap Discount Smart Controller Not Working

$
0
0
Quote
kpgresk
It looks to me like all elements that create words and figures are turned to maximum. Thus if anything is at your controller you won't see it i.e. black writing on black background. Try adjusting the pot on the back again until your printing blocks are toned down.

You just woke up from hibernation ?

How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

$
0
0
Hi,

I am trying to install a bootloader on my Sanguinololu 1.3a board (with new ATmega1284P) since days!

Here are my previous attempts:

I tried several Fuse-Settings, like '0xD6 LFuse, 0xDA HFuse & 0xFD EFuse' or '0xD7 LFuse, 0xDC HFuse & 0xFD EFuse' or '0xFF LFuse, 0xDE HFuse & 0xFD EFuse' or '0xFF LFuse, 0xDA HFuse & 0xFF EFuse' ...and several programmers as well 'stk500v1', 'stk500v2', 'Arduino', ...

BTW: I use an Arduino Uni as ISP, and i have used it successfully before with several creality boards. Wired this way...

Target = Sanguinololu 1.3a ICSP in this case and...

The auto reset jumper was set! :-)

Recently, I tried the following... [youtu.be] (a horrible video, but without a 16Mhz resonator)

And yet so far no success!

My last try will be the tutorial 'Burning the Sanguino Bootloader using Arduino as ISP' from RepRap. But as I said before I am (still) missing a 16Mhz resonator.

First I got an error like 'ATmega1284p expected' from time to time, but now it just comes:

Yikes! Invalid device signature. 0x000000

Arduino: 1.8.10 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Arduino\hardware\tools\avr/bin/avrdude -CC:\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -PCOM3 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDC:m -Ulfuse:w:0xD7:m 

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega1284P
         Chip Erase delay              : 55000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10   128    0 no       4096    8      0  9000  9000 0xff 0xff
           flash         65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Fehler beim Brennen des Bootloaders.
Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Please help me, I'm getting desperate. What am I doing wrong?

Thanks and best regards,
Chris :-)

Re: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

$
0
0
The command line above should have a "-c avrisp" ie use the arduino as an isp, yours has a -cstk500v1 this is trying to use a Atmel STK500 programmer....
Did you select the programmer as "Arduino as ISP"??

himm... I just tried this and it set -cstk500v1 that doesn't seem right, unless they have updated the arduino as a ISP sketch...

Re: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

$
0
0
Hi Dust,

yes i have selected 'Arduino as ISP'. The error message was from Arduino IDE 1.8.10.

Re: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

$
0
0
It could be that you did in fact set the fuses successfully on one of your many tests and now it will not run at all until the resonator is installed.

Re: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

$
0
0
Every burning process has failed so far, so I don't think that's why. But maybe the ATmega1284P cannot be burned with a bootloader on the Sanguinololu board?!

Re: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

$
0
0
Definitely can do it on the board, have done a bunch, but some time ago..
Viewing all 1033 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>