Squirrel on Electric Imp #require “JSONEncoder.class.nut:2.0.0” local number = 1523187384; local record = array(4); local result = 0; local byteArray = array(4); local record2 = array(4); local result2 = 0; local byteArray2 = array(4); // method 1 and before shift right record[0] = ((number & 0xff000000) >> 24); record[1] = ((number & 0x00ff0000) >> 16); […]
Category: General
General items matching the theme of this site
Into 3D printing? The Stackexchange site is about to put into beta a 3D Printing Q&A site and are looking for enthusiastic people to join at the start. Click on image to sign up.
Small example to show how to use pointers to return more than one (1) variable from a function in C or C++
For those wanting to develop with USB, a brilliant resource is USB in a NutShell, My ventures showed while USB is very easy at the user level, it’s far from it at the developer level. Its really a specialty in it’s own right. My first venture into this area was developing a set of rudder […]
Here is the pcDuino which is a mini PC platform that runs PC like OS such as Ubuntu and Android ICS. It outputs through HDMI to a screen and has hardware header interfaces compatible with Arduino. Programming the pcDuino can be done with Python and C. You can even compile Arduino scripts to run on […]
At last found somewhere to buy hobby quantities of the stackable headers besides just the 1 x 6 and the 1 x 8 ones standard for Arduino. These are the same pin size as the Arduino ones. It’s Electron Hobbies and their stackable headers are at http://electronhobbies.com/category.php?id_category=16 And they are based in Australia so don’t […]
This is really more a note for future reference. MMBTA14 NPN Darlington SMD Transistor SOT23 has the marking 1MM (the second M is slightly smaller in font height and there is a slight gap between the 1M and the second M) MMBTA64 PNP Darlington SMD Transistor SOT23 has the marking 2V with what looks like […]
Last Tuesday (27 Jul 2010) I attended a meeting at the South Australian PIC User Group (SAPUG) which was excellent. A great bunch of people that are all keen to help. Ian from The Leon Audio Company gave a talk on how to use MOSFET’s with a PIC and some things to watch out for. […]
I’m on a journey of learning and need to make a decision on which way I go first. When I ordered my Explorer16 board, I also ordered the PIC32MX460F512L PIM, a 32-bit USB capable 100pin chip for the Explorer 16. I also ordered a couple of books from Amazon but they look to be still […]
The Explorer16 is packed with a whole lot of stuff in a very small package. Making sense of it all can be a bit challenging when first getting it out of the box and playing with it. Anyway I’ve put this table together (and it’s also available as a spreadsheet download). It shows all the […]