Page 1 of 1

Intentionally Heat the Battery

Posted: Thu Jan 14, 2016 11:50 pm
by frankfrank
Hello.

Any tips on intentionally heating up the battery of an iPhone 5s?
(Running iOS 9.2)
Using Live Code 7.1.1 Community Edition

I have tried running a bunch of sensors at the same time with no luck:

Code: Select all

on preOpenCard
   put empty into field "messages1"
   --
   put empty into field "messages2"
   --
   put empty into field "messages3"
   --
   put empty into field "messages4"
   
end preOpenCard

on openCard
  
      mobileSensorAvailable ("heading", true)
         mobileStartTrackingSensor "heading", false
         --
         mobileSensorAvailable ("rotation rate", true) 
         mobileStartTrackingSensor "rotation rate", false
         --
         mobileSensorAvailable ("acceleration", true) 
         mobileStartTrackingSensor "acceleration", false
         --
          mobileSensorAvailable ("location", true)
         mobileStartTrackingSensor "location", false
end openCard

on closeCard
 
   mobileStopTrackingSensor "heading"
   //
   mobileStopTrackingSensor "rotation rate"
   //
   mobileStopTrackingSensor "acceleration"
   //
   mobileStopTrackingSensor "location"
   
end closeCard

//Location
on locationChanged latitude, longitude, altitude
   put "Location"&cr&"latitude:"&&latitude&cr&"longitude:"&&longitude&cr&"altitude:"&&altitude into field "messages1"
end locationChanged

//Acceleration
on accelerationChanged x, y, z
   put "Accel"&&x&cr&y&cr&z into field "messages2"
end accelerationChanged

//Heading
on headingChanged heading
   put "Heading"&&heading into field "messages3"
end headingChanged

//Rotation
on rotationRateChanged x, y, z
   put "Rotation rate"&cr&"X:"&&x&cr&"Y:"&&y&cr&"Z:"&&z into field "messages4"
end rotationRateChanged
and tried to create an infinite loop. No luck either.

Code: Select all

put 0 into myVar
repeat forever
   add 0 to myVar
   if myVar = 1 then
   end if
end repeat
Any ideas would be very much appreciated!

Thanks :)

-Frank

Re: Intentionally Heat the Battery

Posted: Fri Jan 15, 2016 2:14 am
by dunbarx
Turn on the LED to full. Vibrator on max. Music on jet engine. Roam. Bluetooth andinternet on.

Microwave?

Craig Newman

Re: Intentionally Heat the Battery

Posted: Fri Jan 15, 2016 3:37 pm
by Mikey
1. change name of phone to "Kevin's Phone"
2. from another phone send the text "Apple wants to buy LiveCode for $99 MM"
3. phone will sweat, vibrate, pant, and the camera's aperature will bug out.

Re: Intentionally Heat the Battery

Posted: Fri Jan 15, 2016 4:38 pm
by FourthWorld
I'm curious: why would you want to take battery life away from the user?

Re: Intentionally Heat the Battery

Posted: Fri Jan 15, 2016 6:24 pm
by frankfrank
The idea is to use your phone as a hand warmer. It is not exactly going to be accepted into the app store, but it is just a fun experiment :)

Re: Intentionally Heat the Battery

Posted: Fri Jan 15, 2016 6:35 pm
by Klaus
Hi frank*2,

get a pair of these: http://www.amazon.com/HotHands-Hand-War ... 0051USN3A/, much cheaper than a new cellphone! 8)


Best

Klaus

Re: Intentionally Heat the Battery

Posted: Fri Jan 15, 2016 6:49 pm
by frankfrank
I prefer the more convoluted way.

Re: Intentionally Heat the Battery

Posted: Fri Jan 15, 2016 7:09 pm
by Klaus
Hi frankfrank,

before I forget: Welcome to the forum! :D
And "suum suique" 8)


Best

Klaus

Re: Intentionally Heat the Battery

Posted: Fri Jan 15, 2016 8:08 pm
by Mikey
YES! STEAMPUNK!