Showing posts from November, 2009

Moving code from ESP8266 to ESP32

A while ago I made a mashup of Dan Royer's code CNC 2 Axis Demo with my own code for trapezoidal motion stepper and servo control for ESP8266.

I assumed porting the code to the ESP32 would be trivial, and that was true for the most part: changes like library name being Wifi.h instead of Wifi8266.h were not a problem. UDP now does not like multicharacter writes but you can use print instead. So far so good.

However, when it came to the interrupt code I was stuck with the stepper interrupt causing an exception sometimes. And to make things weirder, the servo interrupt worked flawlessly (both of them had the IRAM_ATTR directive if you ask me).

Going little by little, I could narrow down the culprit to a floating point operation during the interrupt, that would cause problems sometimes but not always. Browsing around I found this post. Where the solution was simple: do not use floats within the interrupt routines but doubles. The reason was the float calculation would be performed by…

Patience may be rewarded

From Wikipedia: Patience is the state of endurance under difficult circumstances, which can mean persevering in the face of delay or provocation without becoming annoyed or upset; or exhibiting forbearance when under strain, especially when faced with longer-term difficulties.

When the delivery deadline was reached without getting my Kindle DX I was told to call Kindle Customer Support. Though I've insisted I was abroad I was given no other option that to get a refund.
Three calls later, and three extra waiting days, I was "rewarded" by a new shipment, this time One-Day Shipping at no extra cost from Amazon. I still do not want to start dancing till I get it home. However I hope this time delivery will happen (if not, I will find out quickly).
I am really happy I could use Skype to call Kindle Customer Support 800 line. If not it would have become an expensive enterprise as it took me more than half an hour at the phone to get this result. In fact, last Friday I was told…

How not to get a Kindle DX

Apparently I'm out of luck. Last Nov 8th I ordered a Kindle DX from one Amazon's associate. It was shipped Nov 10th and that's all I know since. As the estimated delivery date passed a few days ago I contacted customer service and I was asked to wait a few more days and then to claim for a refund.

As this is my second unsuccessful attempt of buying a Kindle DX, though I have not yet got the refund of my first attempt (still sitting there on my PayPal account) I reckon there is not going to be a third attempt. Whether there is some black magic involved or not I do not know. When I tasked myself with buying a Kindle DX I was not aware it would be so difficult.

Last time I could blame eBay seller, but this time I was buying from an Amazon associate (Warehouse Deals). I'm not buying a DR1000S as battery issues render it almost useless. Something that for a device costing double than a Kindle DX I cannot accept. So maybe I'll wait to see what Plastic Logic delivers in Jan…

Fighting with shady eBay sellers

I'm disappointed Amazon is not yet offering an International version of Kindle DX. I'm disappointed Plastic Logic is not delivering a product, just the name (QUE) is not enough to me. So I decided to get a U.S. Kindle DX and, as Amazon is not selling it overseas I thought eBay was a good place to get one.

After a few days I saw that, from time to time, some sellers offered refurbished units. I read good comments on and about refurbished units (i.e. look brand new, 18% off) for $399 so I was sold.

I bought one DX from a seller named iRebates after contacting with a previous buyer who have had a good experience and was based in Spain too. That seller had a good reputation with more than three thousand successful transactions. It all looked ok. So I shelled out the dough and sat down and waited. And then waited a bit more and essentially nothing else happened. Three days later I asked the seller about my shipment. I was told it had not happe…

27" iMac itch

It's been reported that many geeks are developing a kind of itch associated with visits to the Apple store. Unfortunately I went to a local dealer last week and I've catch it. The only cure I've found is to just go and buy a new 27" iMac.

While the display is awesome (I've got 17" before), I'm quite impressed with the new mouse. I really like it. If mouse battery usage is ok or not I can't tell yet.

Display works great even angled. Sound is ok. Desktop is tidier now. Only doubt is USB access, as being in the back I have a difficult access to it (but I might be moving to SD format instead for easier access to the slot).

I just hope I won't be reporting soon any trouble the system is giving me (as it has happened to me in the past).

Please remember I've warned you: Do not get close to an Apple shop!

Update: I have had this problem with my MBP before and it is one annoying error when using the shell in Snow Leopard. Every type your write a pipe, you …