With a little help from an Arduino mega, however ... coils he got off of Taobao (the Chinese version of eBay), a hall effect sensor, and a handful of current regulation ICs.