Live Long and Prosper
January 21, 2012 by sweemeng · Leave a Comment
For this Lunar New Year, we wish everyone, a Happy New Year. 新年快乐。。

Share this article
Automated Payment Reminder Email Test
January 10, 2012 by sweemeng · 2 Comments
We are currently testing an automated Payment Reminder mailer, please check your email, and if there is any feedback, drop in the comments.
p.s the account number is wrong though
Share this article
The Vortex Lamp
December 21, 2011 by Chein · Leave a Comment
Yet another electro-mechanical lamp/light project. A vortex lamp for your desktop, living room or as a night light.
The lamp produces a spinning water vortex inside a glass, that is then illuminated with LEDs.
Another look (sorry for the poor photo quality)
Similar to how a magnetic stirrer works, a motor will spin a permanent magnet creating a spinning magnetic field. Placing a ferromagnetic metal within that field will cause it to spin as well. The metal spins without making any physical contact with the magnet or motor. The spinning motion of the metal stirs the water in the glass, creating a twister/vortex effect.
The stirrer used is a paperclip, coated with epoxy (to prevent rusting)
Parts are pretty basic. The (somewhat) difficult thing is sourcing for the Neodymium magnet . Any kind of magnet won’t do, especially those ferrite fridge magnets. It has be a neodymium magnet for it to work. Or at least the old school samarium cobalt magnet (if you can find one). I got mine from a dead hard drive. Other source of these magnets would be those magnet therapy bracelets (though the price is an utter rip-off). If not, you’re going to have to shop online as neodymium can’t really be purchased off the shelf (at least in this part of the world).Share this article
HSKL Meeting Notes for 17/12/2011
- Kakeman
- Mel
- Marcus
- Tinker
- Syed
- Tracey
- sweemeng
About
Financial
- Balance in account: Negative RM2290.51
- RM350 From HITB Booth
- Members That Paid, 7
- Members That Haven’t Paid, 6
- Total owed by unpaid, RM1850 until Dec
- Moving Forward:Actively Sending Reminder to Members for the membership dues
- To remind members of payment dues
- Per Members Payment, and dues record, and automated reminder.
- Building lease continue until end of 2012
Membership
- There will not be increase in fees,
- There will be a optional extra contribution, for members that want to contribute more money.
- Add donation button i.e paypal and alternative in blogs. Get help from sniffit
- Money from donation use mel’s paypal account.
- Suggestion: Add a centralized bank account for HSKL under mel.
- Test run on ads on blogs. Ads format, make it relevant to community.
HSKL Direction 2012
- Group Study for Stanford Machine Learning and Crypto class on weekend, depend class schedule
- Monthly electronic project, with kits, one friday for one month.
- We prepare the kit
- The participant will pay for the kit, the price shall include some contribution to the space
- Anyone can start joining
- We should start Workshops,
- no tentative schedule.
- Anyone with participate with donation.
- Not formal.
- It will depends on those that want to coordinate it
- Security meet up,
- first Tuesday of the month, tentative.
- Get OWasp to get involved.
- We provide a space, and reserved for Security Meetup.
- Member do not need pay
- We offer a space to other community
- Members come in for free. If payment ever needed
- Standard Rule apply Read the wiki
- Google spreadsheet for events
- AGM in 2012, so need item, action item, who is responsible.
- Update google calendar
AOB
- EShop, is a go.
- Accept electronics junks
- Help the space button, with donation for both money and toys
The note is online in https://docs.google.com/document/d/1nSHLZFhxYC1EAR4LW4ZB3-K7pSOtpECI8JOjYKRJSFE/edit?hl=en_US
Share this article
Board Game Event Cancelled
December 15, 2011 by sweemeng · Leave a Comment
Due to our host, Chee Leong, have last minute issue crops out. The board game saturday event is cancelled. REPEAT CANCELLED.
The meeting is still on, this have nothing to do with the meeting, happening the same day.
I APOLOGIZE FOR ANY INCONVENIENCE.
Share this article
Boardgame Saturday
December 14, 2011 by sweemeng · Leave a Comment
We going to have a boardgame session this Saturday, we have game brought in by Chee Leong, one of our geeky friend.
Event: Boardgame Saturday
Date: 17 December 2011
Time: 11:00 – Before sun down, maybe
Agenda: we will play the game below;
- Battlestar Gallectica the Board Game (it’s a game of surviving and betrayal)
- Bang! The Bullet (western shootout with some suspense element)
- Power Grid (management and mathematics)
Anyone is welcome to join. And we will continue until we decide to done. Interested in these game. JOIN US ON THIS SATURDAY!!!!
p.s I have posted there event on facebook for sometime, I just forget to put it here. sorry
https://www.facebook.com/events/295891067105754/
Share this article
Teardown of a 12V DC to 110V AC Inverter
November 25, 2011 by klks · Leave a Comment
A few weeks ago as i was browsing eBay i came across this item. It was a 12/24V DC to 110V AC Inverter (5W). Seeing that it was only around RM10, i bought one to rip apart and see its inner workings.
Share this article
HSKL Members Meeting (Saturday 17th Dec 2011 @ 10AM)
November 25, 2011 by klks · Leave a Comment
All HSKL Paying Members,
There will be a meeting on the 17th of December at 10AM to discuss the direction of the group moving forward, the meeting will be held at HSKL. All paying members are encouraged to attend this meeting.
Items to be discussed can be viewed here.
Share this article
Making a Robot With Arduino Bonus Material: NewSoftSerial
November 19, 2011 by sweemeng · Leave a Comment
This is the last post of the robot adventure. Along the way, I am debugging the robot, and realized that the zigbee is hijacking the serial port. Once again the arduino community to the rescue. Introducing NewSoftSerial. What this do is, it provide ‘soft’ serial, i.e another serial port to be used for let say, your xbee shield.
A sample usage is below, it is just a relay from the real serial to a soft serial, which I set to run on digital 2 and 4. The seeestudio doc says it can run on digital 11 and 12, but digital 11 and 12 is used by the motor driver. So I set it to use digital 2 and 4.
#include <NewSoftSerial.h>
uint8_t pinRx=2;
uint8_t pinTx=4;
long BaudRate = 57600;
NewSoftSerial mySerial(pinRx,pinTx);
void setup(){
Serial.begin(BaudRate);
mySerial.begin(BaudRate);
}
void loop(){
if(mySerial.available()){
int val = mySerial.read();
mySerial.print(val);
Serial.print(val);
}
}It just echo what the hardware serial to the serial I set for the zigbee. As you the library is pretty easy to use. To me anyway. You can download it on that page. And install it like any arduino library.
Share this article
Making a Robot With Arduino Part 5: The PC Program
November 19, 2011 by sweemeng · Leave a Comment
The remote control part of the robot already done, now to control it. Because I am out of component. So I decide to write a program to do so. The control program uses python, and it control via serial interface to the arduino, without the microntroller.
Python have many stuff in their standard library, but they don’t have a serial library. On the other hand, python community have created many library that is not in the standard library, pyserial is one http://pyserial.sourceforge.net/. To install it, just use
pip install pyserial
The library is very easy to use too. You need a sleep because sometime the arduino will drop the command if you send it too fast. So just use sleep as a delay. The serial port on windows it is comN, on the constructure replace ‘your serial port’ with a number without quote, it could be 0 for com1, etc. On linux you can specify the path, ‘/deve/ttyUSB0′ or 1 or what not.
import serialimport datetime.time as times = serial.Serial('your_usb_serial_port') time.sleep(2) s.write('serial command') s.close()
Essentially just 4 line minus import just to send serial command.
To make it fancy, I just bundle it with tkinter library for UI, which is part of the python standard library.
from Tkinter import *
import serial
import time
class RobotUI:
def __init__(self,master,port):
self.port = port
frame = Frame(master)
frame.pack()
self.forward_button = Button(frame,text="Forward",command=self.move_forward)
self.forward_button.pack(side=TOP)
self.backward_button = Button(frame,text="Backward",command=self.move_backward)
self.backward_button.pack(side=BOTTOM)
self.left_button = Button(frame,text="Rotate Left",command=self.rotate_left)
self.left_button.pack(side=LEFT)
self.right_button = Button(frame,text="Rotate Right",command=self.rotate_right)
self.right_button.pack(side=LEFT)
def move_forward(self):
print "forward"
self.move_('w')
def move_backward(self):
print "backward"
self.move_('s')
def rotate_left(self):
print "left"
self.move_('a')
def rotate_right(self):
print "right"
self.move_('d')
def move_(self,direction):
s = serial.Serial(self.port)
time.sleep(2)
s.write(direction)
s.close()
root = Tk()
app = RobotUI(root,2)
root.mainloop()Again the code for the controller can be found here https://gist.github.com/1378327
Now the robot is complete. And can be used. The last post, is on newsoftserial library for arduino. Not directly related to the robot. I experiment on it as I build it.






