Posts with «ios» label

Reverse-Engineering the Peugeot 207’s CAN bus

Here’s a classic “one thing led to another” car hack. [Alexandre Blin] wanted a reversing camera for his old Peugeot 207 and went down a rabbit hole which led him to do some extreme CAN bus reverse-engineering with Arduino and iOS. Buying an expensive bezel, a cheap HDMI display, an Arduino, a CAN bus shield, an iPod touch with a ghetto serial interface cable that didn’t work out, a HM-10 BLE module, an iPad 4S, the camera itself, and about a year and a half of working on it intermittently, he finally emerged poorer by about 275€, but victorious in a job well done. A company retrofit would not only have cost him a lot more, but would have deprived him of everything that he learned along the way.

Adding the camera was the easiest part of the exercise when he found an after-market version specifically meant for his 207 model. The original non-graphical display had to make room for a new HDMI display and a fresh bezel, which cost him much more than the display. Besides displaying the camera image when reversing, the new display also needed to show all of the other entertainment system information. This couldn’t be obtained from the OBD-II port but the CAN bus looked promising, although he couldn’t find any details for his model initially. But with over 2.5 million of the 207’s on the road, it wasn’t long before [Alexandre] hit jackpot in a French University student project who used a 207 to study the CAN bus. The 207’s CAN bus system was sub-divided in to three separate buses and the “comfort” bus provided all the data he needed. To decode the CAN frames, he used an Arduino, a CAN bus shield and a python script to visualize the data, checking to see which frames changed when he performed certain functions — such as changing volume or putting the gear in reverse, for example.

The Arduino could not drive the HDMI display directly, so he needed additional hardware to complete his hack. While a Raspberry Pi would have been ideal, [Alexandre] is an iOS developer so he naturally gravitated towards the Apple ecosystem. He connected an old iPod to the Arduino via a serial connection from the Dock port on the iPod. But using the Apple HDMI adapter to connect to the display broke the serial connection, so he had to put his thinking cap back on. This time, he used a HM-10 BLE module connected to the Arduino, and replaced the older iPod Touch (which didn’t support BLE) with a more modern iPhone 4S. Once he had all the bits and pieces working, it wasn’t too long before he could wrap up this long drawn upgrade, but the final result looks as good as a factory original. Check out the video after the break.

It’s great to read about these kinds of hacks where the hacker digs in his feet and doesn’t give up until it’s done and dusted. And thanks to his detailed post, and all the code shared on his GitHub repository, it should be easy to replicate this the second time around, for those looking to upgrade their old 207. And if you’re looking for inspiration, check out this great Homemade Subaru Head Unit Upgrade.


Filed under: car hacks

1Sheeld Turns your iPhone into a platform of Arduino shields

Have you ever thought of turning your iPhone and iPad into a platform of more than 40 Arduino shields? Now it’s possible!

The team of 1Sheeld have officially released the new 1Sheeld for iOS and it’s available for pre-orders for $39 instead of it’s original price $55 (shipping on May 2016).

You can  control robots, actuators, display sensors’ data and much more.  Take a look at the demo video:

New Project: Make an Apple Watch Door Unlocker

Use an Apple Watch to automagically open doors at home or at work with a tap on your wrist.

Read more on MAKE

The post Make an Apple Watch Door Unlocker appeared first on Make: DIY Projects, How-Tos, Electronics, Crafts and Ideas for Makers.

Arduino Plays White Tiles On Your Mobile Touchscreen

Like many mobile gamers, [Daniel] has found himself caught up by the addictive “White Tiles” game. Rather than play the game himself though,  [Daniel] decided to write his own automatic White Tiles player. While this hack has been pulled off before, it’s never been well documented. [Daniel] used knowledge he gleaned on Hackaday and Hackaday.io to achieve his hack.

The basic problem is sensing white vs black tiles and activating the iPad’s capacitive touch screen. On the sensing end, [Daniel] could have used phototransistors, but it turned out that simple CdS cells, or photoresistors, were fast enough in this application. Activating the screen proved to be a bit harder. [Daniel] initially tried copper tape tied to transistors, but found they wouldn’t reliably trigger the screen. He switched over to relays, and that worked perfectly. We’re guessing that changing the wire length causes enough of a capacitance change to cause the screen to detect a touch.

The final result is a huge success, as [Daniel’s] Arduino-based player tears through the classic game in only 3.9 seconds! Nice work [Daniel]!

Click past the break to see [Daniel’s] device at work, and to see a video of him explaining his creation.


Filed under: Arduino Hacks

The Light Blue Bean Goes Mobile

Today the Light Blue Bean just because the first Arduino compatible board to allow you to write, compile, and then upload a sketch directly from your iPad.

Read more on MAKE

MAKE » Arduino 19 Nov 18:00

Hands on with the Light Blue Bean

We took an initial look at Punch Through Design's Light Blue Bean when they opened for pre-orders. Now we have our hands on the hardware it's time to take a closer look.

Read more on MAKE

New in the Maker Shed: RedPark TTL iOS Cable Breakout Pack

RedPark just announced a new version of their iOS cable and it’s available right now in the Maker Shed! This revised cable allows you to hook your iDevice up to an Arduino with no soldering or jailbreaking required. The new cable works just as the RS-232 terminated version except RedPark has make a few internal changes so that it communicates over TTL serial (the same serial protocol used by an Arduino.) Eliminating the need for a TTL adapter means it’s never been easier to connect your iPhone, iPad, or iPod Touch to an external microcontroller for enhanced sensing and communication!

The new RedPark TTL cable is available by itself or in a handy breakout pack that includes our deluxe jumper wires and Mintronics: Survival Pack Guts (no tin.) This way you have everything you need to hook the cable up to an Arduino and have plenty of components to experiment with. Just add an Arduino, a copy of Alasdair Allen’s “iOS Sensor Apps with Arduino,” and you’ll be up and running in no time! Also, we’ll have them in stock at Maker Faire!

Features:

  • Does not require soldering!
  • Enables development of iOS apps for private use in homes, schools and offices
  • Connects iOS devices to microcontrollers and sensors!
  • Designed for use with iPhone 4S, iPhone 4, iPhone 3GS, iPod touch (fourth generation), iPad 2 and iPad.
  • Used in conjunction with the Redpark Serial Cable SDK and sample code. Together these tools enable you to write iOS apps that communicate with serial devices.
  • Requires iOS 4.3.x or later.
  • Includes Mintronics: Survival Pack Guts
  • Includes Deluxe Jumper Wires

More:


MAKE » Arduino 14 May 16:00

Dale Dougherty and Alasdair Allan Talk Arduino/iPhone

Alasdair Allan, author of Learning iPhone Programming, Programming iPhone Sensors, and iOS Sensor Apps with Arduino (available along with the Redpark Breakout Pack for Arduino and iOS) sat down with MAKE’s Dale Dougherty to talk about getting iOS devices and Arduino talking to each other. (video link)

Dale and Alasdair are just two of your 300 peers you’ll run into at the upcoming Hardware Innovation Workshop, May 15-16, 2012—where MAKE magazine hosts an inspired conversation and curated tour of the unique culture, enabling technologies, and innovations of the maker movement.


MAKE » Arduino 29 Apr 03:45
arduino  ios  iphone  redpark  

Sphero goes modular, spins out for a drive (video)


Sphero's hooked up with a new whip, albeit a retro-fitted one. Skylar, a Junior Developer at Orbotix, modded an old RC car with an Arduino board, H-bridge and a few trackball parts, enabling the remote control ball to serve as its brain. Just in time too -- there's only so much fun you can have getting the little orb stuck behind the filing cabinets. Still, it's certainly a leap beyond purposing it to pull an iPhone-toting chariot.

Sean Buckley contributed to this post.

Sphero goes modular, spins out for a drive (video) originally appeared on Engadget on Mon, 19 Mar 2012 02:36:00 EST. Please see our terms for use of feeds.

Permalink | Email this | Comments