Progress on the espresso controller

After some struggling around I have now successfully created my first small program in HI-TIDE. I had missed I was looking into the pic1267x.h file when finding defs for my code. The program I tried to compile was the simple debouncer example from the PICkit FLash Starter Kit though it was not specifically written for the 12F675 which I have here. Thus I had to change some of the defs used, e.g. RA5 to GPIO5. I got help from the HI-TIDE Forum that I should look in pic12f6x.h instead which made it much easier to get it to compile:-)

Also solved the powersupply issue. Just take a 220V USB charger, gives a nice 5V with 500 mA!

Espresso controller

Spent some more times on the new PIC project and found some useful stuff:

Mike Pearce Heater project over at MicroChips webiste is more or less what I intend, atleast when it comes to writing code! So Basically I just need to compile it and build the electronics, atleast for a first version.

And looking for a C compiler I found out that nowadays HTSoft have a free version of their PIC C Compiler. And best of all, it has no limitations for the 12F629 or 12%675 which I intend to use!

And ontop of all these great news I also found out that HTSoft now have an eclipse based IDE! HI-TIDE – HI-TECH Integrated Development Environment

Now I just need to get Mike’s code to compile with the PIC C compiler using the HI-TIDE.

Tags: , ,

PIC project

The heating regulator in my espresso machine has given up. So either I buy a new machine for 4000 SEK or I try to fix it, the later is cheaper and more fun. The idea is to have one PIC control the heating so it needs a thermometer and a relay. Also one needs probably to be able to adjust the temperature which it should strive for and it would be nice to be able to see the actual temperature. Also I need to power the whole thing.

  • Thermometer, the Dallas 1-wire chips has worked well before and there exists PIC code for them so it seems easy to use to get a very accurate reading.
  • Relay, need to find quite relay that can handle 200V and the amount of amps needed.
  • Display, this is a bit wicked idea, but I thought that adding a display to the espresso machine wouldn’t look to good, thus I’ll use a mobile phone instead and add bluetooth to the espresso machine so it can receive new temperature settings and tell current temperature.
  • Power supply, have not found a good solution yet…

So this post will be updated once I progress with the project. The first task is to find 1-wire source code for the PIC, next to get it compiled. Then test it with a 1-wire device and write the code needed.

Uppgradering till 1.1.1

Så där, då hade man 1.1.1 på telefonen.

Var lite struligt, fick kombinera lite guider. Började med att virginiza den enligt denna guide. Men insåg jag behövde en MAc för att komma vidare på den guiden(ngn som vill skänka en?)

Men hittade denna PC guide, som jag hoppade in på Part 2, då jag redan hade en jailbreakad 1.02. Men fastnade igen när det gällde att åter ansluta sig till iPhonen, visade sig att den hade ett annat wlan tidigare i listan som inte var det jag satt på som den kopplade upp sig. Men steg 18-21 i denna guide förklarar hur man tar sig ur den situationen. Dock innan jag kunde göra det så hade jag ytterligare ett problem, jag kunde inte slå numret. Efter lite funderande kom jag på anledningen, det stod Sim locked eller något liknande på skärmen. Jag hade ju i mitt SIM kort som jag har PIN-kod på! Hittade inte hur jag på en oaktiverad telefon kunde mata in PIN-koden så tog fram AT&T kortet som följde med och då gick det utmärkt igen.

Men kunde fortfarande inte köra sftp, så även One-Click Activation som det finns länk i början på sista guiden fixade själva Activation delen. Sedan var det bara att fortsätta på del 3 i PC guiden.

Svenskt tangentbord på iPhone med stöd för stora ÅÄÖ

Fick det att fungera efter lite pill, så här gjorde jag:

Ladda ned Swedish Keyboard filerna. URLen hittar du i första inlägget på sidan fyra i denna tråd.

Se till att ha senaste versionen av Installer.App installerad på telefonen. Installer 2.63(som den heter i iBrickr) finns tillgänglig via iBrickr. Installera den och starta för att sedan via den uppgradera den till 3.0.

Sedan följ instruktionerna från MacWorlds forum fram till och med punkt 7 dock inte längre! Swedish-keyboard.zip har du ju redan laddat ned!

Starta sedan iBrickr och ladda över alla filer från swedish-keyboard.zip utom SKCyrillicKeyboard och readme.txt! Filerna skall läggas i /Library/MobileEnhancer/cyrillic-keyboard.men/ Så gå till det biblioteket med iBrickr och välj sedan upload files och markera de som skall laddas upp. Starta om telefonen och nu skall du ha svenskt tangentboard! Det ligger dock inte som första tangentbordet utan som nummer två så tryck på knappen under shift för att få fram det!

Stäng av Auto-correction för annars kommer telefonen crasha titt-som-tätt, läs mer om det här.

Om du får problem med att det fortfarande år kyrilliska tecken så deleta först de filer som ligger på telefonen innan du laddar upp de nya svenska. OBS! Ta bara bort de du ersätter!

Det skall även gå att ladda ned PXL filerna för Cyrillic Keyboard 1.0a3 och Mobile Enhancer. Det finns länkar till dessa en bit ned i bloginlägget om Cyrillic Keyboard. Men jag fick inte det att fungera med dem.