Forum Replies Created
-
AuthorPosts
-
laurentParticipantThanks Ray for your support.
I’m was lucky, I have found, following the part number given by diydwayne a vendor on ebay.
Of course the delay for the shipping is longer but I don’t have found in France or in other shop on the Web.
It’s often the problem when the pcb is already done and we don’t have the spare part list.Ray, if you have, I’m already interesting by a spare list. I have to find all other passive components and connectors.
Regards
Laurent
laurentParticipantThanks for the part number.
laurentParticipantHow to send a pm ?
How many cost your pcb ?
laurentParticipantThanks for your feedback and clarification.
I was not sure that the firmware use the internal ram of the DS1307, not present in the DS3231.
My idea is to use the DS3231MZ with less pins than the DS3231SN.Regards
laurentParticipantin addition a good web page to calculate your fuse setting….
http://www.engbedded.com/fusecalc
laurentParticipantOK, your fuse setting seems to be ok, regarding this page:
https://github.com/rayshobby/opensprinkler/blob/master/OpenSprinkler%20Controller/software/arduino-code/hardware/aopensprinkler/boards.txtThis command is only when you have a blank mcu, to load the bootloader and the firmware:
avrdude -c usbtiny -p m644p -B 1 -F -U flash:w:combined2.1.2_16mhz.hexAfter that, can normally update you mcu with the OsfwUpdater, with the usb port.
Can you send the log file ‘log.txt’ of the OsFwUpdater ?
laurentParticipantOk Randy,
Which atmega do you have m644 / m644p ?
In any case, you don’t need a crystal to burn the firmware the first time. Because the Atmega, from factory, is programmed to run with internal oscillator.
For a test you can try check your communication with the mcu, with this command:
avrdude -c usbtiny -p m644 -B 1 -v -l log.txt
If you don’t have a correct answer, check your setting (connection/power supply) with your isp programmer.
It can be useful, to help you, to post, your actual connection with your ISP programmer and also with mcu and your drawing.
In addition, the complete log generated (log.txt).
laurentParticipantHello randy,
This command is only to load a blank atmega m644p when no bootloader is already loaded in the atmega.
You cannot use the osFWupdater.
You must use to burn a blank atmega a programmer to program your atmega. That the problem…. Without a programmer you cannot program the bootloader.
In my case, I have buid the programmer from the idea from this page (http://rayshobby.net/opensprinkler/svc-build/usb-programming-for-opensprinkler-v1-01-1-build-instructions). You can also buy on ebay a USBasp programmer like this one: http://www.ebay.de/itm/Official-product-USBasp-programmer-green-/321737280149In the example, it’s a usbtiny programmer.
And the board 2.2 is running with a 16Mhz oscillator.
laurentParticipantUnfortunately, Proteus use only the hex file. So I don’t know which part of the code is the reason.
May be the sd card emulation is not correct for the firmware.
laurentParticipantBut take care about a transformer used for a doorbell or such devices like door lock.
Some high interferences can be send to the transformer, and also the opensprinkler board.
Sometimes it’s best to have a independent transformer to avoid interferences between different sources.
laurentParticipantThanks Ray for the file 🙂 and your support.
laurentParticipantHello karolis,
Ray has right, the best is to buy in the same shop where you buy all sprinklers.
Or if your are living in France I can give you some web sites to buy a transformer with Voltage/current … and the correct main power plug for your country.
laurentParticipantWhy not 😉
I don’t have tried to load only the optiboot and use the OsFWUptader.
The optiboot doesn’t works when it has loaded alone without the firmware ?
Which target mcu do you have (m644 or 1284) ?
https://github.com/Optiboot/optiboot/tree/v4.4/optiboot/bootloaders/optiboot
laurentParticipantOK, no problem.
May be in the future, I will compiled a version for my language.
laurentParticipantHello Ray,
Thanks for your support and the hex file. I have uploaded the file and now the bootloader works and the update to the last version was done successfully (2.1.4).
I have only, for avrdude, skip the parameter B -250 because I have already during my tests set all fuses to the correct value, to works with a external crystal of 12 MHz. But your are right, without the B -250 you cannot communicate with a mcu the first time.In my case, I have used your usbtiny programmer done with the ATtiny45. Thanks to share all informations to build it.
And I’m using the nice AVRDUDESS program. The GUI is more comfortable than the line command 😉 and you can save a configuration.Best regards
Laurent -
AuthorPosts