Open Source ATM
-
OK so how do I convert a .png to hex then… confused :-\
-
Check the link I posted up. Start with a two colour TIFF, rename it to a .bin and use the bin to hex converter, then remove the TIFF header.
Fire me your PNG and I’ll see what I can do.
-
it looks like a FTC logo has already been generated for us… doh, check things before people start work muddy!
Everything is here with the exception of the coin taker, which is due tomorrow, but I’m not going to be here :( so it maybe Saturday before I get my hands on it, and I have a very busy weeekend again so it could be early next week before I get back onto the project.
I think the logo.oba is the original BTC logo as the new code mentions logo.ofa
if(SD.exists(“logo.ofa”)){
printBitmap(“logo.ofa”);
-
This is the logo I have found,
I have an logo.oba file, but without printing it I don’t know if it is for the above image
-
git says “23 days ago”, so I’d guess that’s the original. The new logo has different dimensions, so will need a tweak in the code, if it hasn’t already.
Let me have a look at the image and see what I can sort.
-
Where did that logo come from?
-
It’s in with the QRCode generator stuff
https://github.com/mayosmith/BitcoinQRMaker
I set this up today to see if it generated the hex files needed for the printer to produce the private keys, but all it seams to do is generate the QRcodes, a quick browse through the folders and I found that logo
-
I think I have something wrong here my output looks some thing like this
:2000000049492A00701300008000204FF814160D0784426150B864361D0F88439FF1388C68 :200020004003178AC6627048CC362E018EC8625148747E450F8DC9E552B9647A312D95CA53 :2000400066102934CE0F3299CD66D3B9E4F60D1C9F50685119C4C2753CA2CB68F4386526DF :20006000154B9B53A995395542A937924E65F3DA9556B757B05840140B1596A359A357E74A :2000800075D93D5AC56C835BA5B70B35D6696AB35D23B72965EA337CBB6064F64C161689A0 :2000A00068A55E2677E8AE02A97EC760F1186BB646998C88E5A43988B62B299F88612139FF :2000C000CD04973D0BD269A4123D156B570DD4E674F22D2647639DD7E96C1B787EDB272E37 :2000E000DCEA37F5EE0EB37569E2E878DC79666A07C3B6ECE0BBCD54A3A1CDE94776BD9BE3 :200100001F5E57CEE65F7BDC4EB6B619BEF3747934DF1F8781B4E5FBA45E0EA427D141FB7A :20012000CFBC1F1DC797F0EE3E4F13D2EC3D6AC406FB3B8FAA10FA3DB00C1102B60FE41CA3 :20014000D9420D1C1B0A3FCFD4130BAF70030F03C170DC40F5426A141485BF30C42502236A :2001600050E44A003F681C5707B0AC843CE7C4714BCF1BBBB11B1B1E27D1B42A844850CCF5 :200180005F0EC8716C7C82C630748A8AC9EC0CA28D46710C92CBBDB064731137B1E44EB89A :2001A000C80AE4B32F4C724CBEF749AE1496BBCAF23C7B2ECDB1C4E11ACCAF83613AB05213 :2001C0009C8D1DCCD3C43E9DCD2B3CB738CDEEACAB374F8B5C5D40BDD3D50F3050920CFDCD
not quite what I was expecting ::)
-
I’m only presuming the image is two colour to be honest, because previous printers I’ve played with had that limit. I’ll have a read over the printer documentation to see if we can handle other greyscale shades.
-
I think I have something wrong here my output looks some thing like this
:2000000049492A00701300008000204FF814160D0784426150B864361D0F88439FF1388C68 :200020004003178AC6627048CC362E018EC8625148747E450F8DC9E552B9647A312D95CA53 :2000400066102934CE0F3299CD66D3B9E4F60D1C9F50685119C4C2753CA2CB68F4386526DF :20006000154B9B53A995395542A937924E65F3DA9556B757B05840140B1596A359A357E74A :2000800075D93D5AC56C835BA5B70B35D6696AB35D23B72965EA337CBB6064F64C161689A0 :2000A00068A55E2677E8AE02A97EC760F1186BB646998C88E5A43988B62B299F88612139FF :2000C000CD04973D0BD269A4123D156B570DD4E674F22D2647639DD7E96C1B787EDB272E37 :2000E000DCEA37F5EE0EB37569E2E878DC79666A07C3B6ECE0BBCD54A3A1CDE94776BD9BE3 :200100001F5E57CEE65F7BDC4EB6B619BEF3747934DF1F8781B4E5FBA45E0EA427D141FB7A :20012000CFBC1F1DC797F0EE3E4F13D2EC3D6AC406FB3B8FAA10FA3DB00C1102B60FE41CA3 :20014000D9420D1C1B0A3FCFD4130BAF70030F03C170DC40F5426A141485BF30C42502236A :2001600050E44A003F681C5707B0AC843CE7C4714BCF1BBBB11B1B1E27D1B42A844850CCF5 :200180005F0EC8716C7C82C630748A8AC9EC0CA28D46710C92CBBDB064731137B1E44EB89A :2001A000C80AE4B32F4C724CBEF749AE1496BBCAF23C7B2ECDB1C4E11ACCAF83613AB05213 :2001C0009C8D1DCCD3C43E9DCD2B3CB738CDEEACAB374F8B5C5D40BDD3D50F3050920CFDCD
not quite what I was expecting ::)
Hmm. How did you generate that?
-
bin2hex
I’m so confused right now :-\ I just don’t understand it at all
-
I had issues too, I called the file logo.ofa for Open Feathercoin ATM, had issues with converting between them and seeing what it looked like too. Might get some more time in the next few days to investigate further…
-
The problem with this bit is it needs to be a rinse and repeat process because it’s need for the private wallet qrcodes i.e. 1 for every ppurchase from the ATM
-
Yeah, I’m getting the same rubbish.
-
Bugger
-
try
{
0x00,0x00,0x1F,0x30,0x10,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x03,0x06,0xFA,0x02,0x0A,0x0A,0x0A,0x0A,
0xF2,0xFA,0x06,0x05,0x02,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x07,0x19,0x26,0x58,0xA0,0x40,0x80,0x04,0x00,0x00,0x00,0x00,0x02,0x00,0x00,
0x00,0x00,0x00,0x00,0x80,0x40,0x20,0x90,0x6C,0x1D,0x07,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x1F,0xCF,0xF0,0x00,0x00,0x00,0x0E,0x05,0x06,0x06,0x06,0x06,0x06,0x06,0x03,0x06,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xFF,0x3F,0x00,0x00,0x00,0x00,
0x00,0xFF,0x20,0x30,0x20,0xC0,0xC0,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xC0,0xC0,
0xE0,0x70,0x3D,0x07,0x00,0x00,0x00,0x00,0x00,0x03,0x0F,0x3C,0x50,0xA0,0xC0,0x80,
0x80,0x80,0x80,0x80,0x80,0x80,0x80,0xC0,0x60,0x38,0x1F,0x07,0x00,0x00,0x00,0x00,
0x00,0xFF,0xE7,0x18,0x10,0x20,0x40,0xC0,0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80,
0xC0,0xA0,0x5F,0x1F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x80,0xFE,0x79,0x06,0x01,0x00,0x00,0x80,0x40,0x40,0x20,0x20,0x40,0x80,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x1F,0xFC,0xE0,0x00,0x00,0x00,0x00,
0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x01,0xFF,0x7C,0x00,0x00,0x00,0x30,0xFF,0x87,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0xA0,0xE0,0x00,0x00,0x00,0x00,
0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x80,0x40,0xB0,0x58,0x0C,0x14,0x0A,0x06,0x05,0x06,0x02,0x02,0x02,0x02,
0x06,0x05,0x06,0x0A,0x0C,0x1C,0x38,0xF0,0x60,0x80,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xFF,0x28,0x28,0x18,0x0C,0x04,0x06,0x02,0x02,0x02,0x02,0x02,0x02,0x06,0x0A,
0x04,0x3C,0x78,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0xE0,0xD0,0x28,0x14,0x0A,0x06,
0x05,0x02,0x02,0x02,0x02,0x03,0x06,0x06,0x0C,0x1C,0x38,0x30,0x00,0x00,0x00,0x00,
0x00,0xFE,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0xFE,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,
0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,
0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
}; -
Also the image is 248 x 135 which needs changing in the define on the first two lines.
-
whats that and how did you get it?
-
That should be the new logo’s code.
-
So at the moment I have no way of checking, but how did you get that and what did you start with?
I’m going to pop out in a bit and get some components to make up the circuit board, so hopefully a little later we can try some of these things out :)