LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to build a sorter that scans the barcode on the brick using an iPhone and sorts it accordingly to the barcode. I cannot use colours due to amount of things to sort.

share|improve this question
There are many Apps available on the App store that can scan barcodes and export the data via e-mail/dropbox etc. However your main problem will be latency. Unless you're prepared to program your own app (as David suggests) it may be worth considering other options. – Ambo100 Aug 9 '14 at 15:50

You will have to write an application for your phone that can scan the codes and then send the information to the EV3 via bluetooth or wifi.

If you don't know how to write iOS apps, start here.

For scanning bar codes there seems to be good info here. It appears that bar code scanning is built into iOS 7. If you have an older version, the the zxing library sounds like a good choice.

For communicating to the EV3 over bluetooth, this has been asked before. However, I have yet to come across a good example.

You should be able to figure out the communication protocol for communicating with the EV3 from the LEGO firmware documentation, VM documentation and source code.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.