Hello!
I'm trying to build the powerswitch project on breadboard, but I have problems making it work.
On my breadboard, I have successully built a "1-button keyboard" before, using V-USB, the Zener-diode method, and an ATMEGA16 chip. I have removed the ATMEGA16 and the parts required for the "1-button keyboard" project, leaving the USB part intact, therefore I'm fairly sure that there is no problem with the USB interfacing resistors/zerers/etc.
So, I have installed the tiny2313, made all the connections, connected to ISP, set the fuses according to the supplied Makefile, and flashed the precompiled hex into the chip.
After that, the circuit wouldn't work, I get the "unable to enumerate device" message on the PC.
(Only for curiosity, I have rebulilt the 1-button keyboard using the Atmega16 on the same breadboard, and it works perfectly. Rebuilt the powerswitch, not works)
The only changes to the supplied schematic are the tiny2323 instead of AT90S2313 and the Zener-diode method instead of the 3.5V regulator (LE35CZ).
Could anyone please give me some hints?
regards,
Peter
PowerSwitch on Tiny2313 - problems
Re: PowerSwitch on Tiny2313 - problems
_Petya_ wrote:So, I have installed the tiny2313, made all the connections, connected to ISP, set the fuses according to the supplied Makefile, and flashed the precompiled hex into the chip.
Did you check usbconfig.h?
Re: PowerSwitch on Tiny2313 - problems
_frank26080115 wrote:_Petya_ wrote:So, I have installed the tiny2313, made all the connections, connected to ISP, set the fuses according to the supplied Makefile, and flashed the precompiled hex into the chip.
Did you check usbconfig.h?
Yes, it is configured properly:
Code: Select all
#define USB_CFG_IOPORTNAME B
#define USB_CFG_DMINUS_BIT 0
#define USB_CFG_DPLUS_BIT 1
Of course I recompiled the project to make sure this is what is inside the hex, still no success...
regards,
Peter
Re: PowerSwitch on Tiny2313 - problems
_Petya_ wrote:The only changes to the supplied schematic are the tiny2323 instead of AT90S2313 and the Zener-diode method instead of the 3.5V regulator (LE35CZ)
Are you using a separate power supply or are you powering the device entirely from USB? Maybe drawing too much current?
Re: PowerSwitch on Tiny2313 - problems
maxi wrote:_Petya_ wrote:The only changes to the supplied schematic are the tiny2323 instead of AT90S2313 and the Zener-diode method instead of the 3.5V regulator (LE35CZ)
Are you using a separate power supply or are you powering the device entirely from USB? Maybe drawing too much current?
I' m powering it from USB, but when flashing the AVR, I disconnect USB, connect the same USB cord to my programmer, connect 5V power from my lab power supply, and do the flashing. During, and after flashing, the current limit of my power supply (set to a few hundred milliamps) is not reached. So the circuit is obviously not drawing too much current (> 500 mA) from the USB either.
Anyway, if the current draw would be the problem, I'd get the syslog message about this, (I have seen that kind of message before, but never with this circuit.)
regards,
Peter
Re: PowerSwitch on Tiny2313 - problems
Petya, any success? I'd like to replicate the same project - using tiny2313 and zenner diods instead of mega and a stabilizer.
I guess, there are some differences in attiny2313 and that at90s2313, so it wouldn't be that easy, at leas, some time ago I saw an article explaining how to modify the at90s firmware to fit tiny2313.
By the way, what's the url to that project you're trying to do?
I guess, there are some differences in attiny2313 and that at90s2313, so it wouldn't be that easy, at leas, some time ago I saw an article explaining how to modify the at90s firmware to fit tiny2313.
By the way, what's the url to that project you're trying to do?
Re: PowerSwitch on Tiny2313 - problems
Hi!
I see that 'USB_CFG_DPLUS_BIT' is set to 1...but by default USB_CFG_DPLUS_BIT needs to be an INT0 pin.
So on Attiny2313 it should be in PORT D and PIN 2.
Maybe it helps someone.
I see that 'USB_CFG_DPLUS_BIT' is set to 1...but by default USB_CFG_DPLUS_BIT needs to be an INT0 pin.
So on Attiny2313 it should be in PORT D and PIN 2.
Maybe it helps someone.
_Petya_ wrote:_frank26080115 wrote:_Petya_ wrote:So, I have installed the tiny2313, made all the connections, connected to ISP, set the fuses according to the supplied Makefile, and flashed the precompiled hex into the chip.
Did you check usbconfig.h?
Yes, it is configured properly:Code: Select all
#define USB_CFG_IOPORTNAME B
#define USB_CFG_DMINUS_BIT 0
#define USB_CFG_DPLUS_BIT 1
Of course I recompiled the project to make sure this is what is inside the hex, still no success...
regards,
Peter