{"id":3249,"date":"2023-05-24T16:25:00","date_gmt":"2023-05-24T21:25:00","guid":{"rendered":"https:\/\/www.camsoda.com\/blog\/?p=3249"},"modified":"2023-06-27T02:05:01","modified_gmt":"2023-06-27T07:05:01","slug":"how-we-built-a-robot-bull-for-camsoda-using-webrtc-and-iot","status":"publish","type":"post","link":"https:\/\/www.camsoda.com\/blog\/how-we-built-a-robot-bull-for-camsoda-using-webrtc-and-iot\/","title":{"rendered":"How we built a robot bull for Camsoda using webRTC and IoT."},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">The only thing better than watching someone go for a ride, is to be the person in control of it.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here at Camsoda, sharing good times with our viewers is always of top priority, so we had the fun idea of streaming some of our gorgeous models saddling up for a ride on a mechanical bull using low latency webRTC and IoT. We got to thinking; how can we get Camsoda viewers to take part in the party rather than watching it from afar?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The idea came pretty quickly &#8211; We\u2019ll build a community-controlled Mechanical Bull!<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>&#x23f0; Hours to complete the project: 446<\/li>\n\n\n\n<li>&#x1f46b; Number of team members: 8<\/li>\n\n\n\n<li>&#x2615;&#xfe0f; Coffee provided: Unlimited<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">There\u2019s no denying the pull for attention of everyone in the room when someone is riding a Mechanical Bull. What initially started as a training device for bull riders in the 1930\u2019s grew to be an attraction at county fairs, events and, eventually, bars. People can\u2019t get enough of watching others trying to conquer the steel beast and one thing&#8217;s for sure &#8211; a Mechanical Bull is cause for a good time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Let&#8217;s Dig Into How We Did It! <\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"452\" src=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/arduino-nano-1024x452.jpg\" alt=\"\" class=\"wp-image-3292\" srcset=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/arduino-nano-1024x452.jpg 1024w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/arduino-nano-300x132.jpg 300w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/arduino-nano-768x339.jpg 768w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/arduino-nano-1536x677.jpg 1536w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/arduino-nano.jpg 1780w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">What? A custom user controlled Arduino, IoT bull<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">So how exactly are viewers at home given access to the servo control?&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Through the use of an Arduino nano, of course!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Camsoda viewers can tune in to our Control-the-Bull live streams and have a turn sending models on a wild ride by sending tips in exchange for control of the bull.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Arduino nano is a small but efficient micro controller often used in electronic projects and robotics. This micro board can communicate with other computers, micro controllers and cloud networks.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When viewers give tips, they are given access to send commands to this micro controller, which then passes the command to the RC servo control PCB. This allows you to control how fast, hard, or smooth the ride is for our models.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/original-1024x576.jpg\" alt=\"Arduino nano\" class=\"wp-image-3282\" width=\"651\" height=\"366\" srcset=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/original-1024x576.jpg 1024w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/original-300x169.jpg 300w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/original-768x432.jpg 768w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/original-1536x864.jpg 1536w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/original.jpg 1920w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">World\u2019s First Community-Controlled Mechanical Bull<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/hero-bull-1024x576.png\" alt=\"\" class=\"wp-image-3255\" srcset=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/hero-bull-1024x576.png 1024w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/hero-bull-300x169.png 300w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/hero-bull-768x432.png 768w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/hero-bull.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Giving control of a mechanical bull to an online community has never been done before. Camsoda viewers around the world can tip and take control of starting or stopping the bull, and setting speed, direction, and difficulty while watching the model ride through these commands in real-time. It\u2019s yet another fun and engaging initiative made by Camsoda to allow you to interact more personally with our models. Tips can be made throughout the live show via credit card or cryptocurrency.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"implementing-webrtc\">Implementing WebRTC<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"500\" src=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/sodaRTC-1.jpg\" alt=\"\" class=\"wp-image-3261\" srcset=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/sodaRTC-1.jpg 1000w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/sodaRTC-1-300x150.jpg 300w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/sodaRTC-1-768x384.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Camsoda is built using our own state of the art custom implementation of webRTC, we knew our platform would be perfect to fulfill our goals of low latency video for the user controlled inputs of the bull. This enabled us to stream the remote control in real time, with very low latency. In short, watching and controlling the bull is very satisfying for the user allowing for them to control our bull riding ladies in real time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Makeup Of The Bull<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Camsoda bull is a feat in a few ways; from it&#8217;s custom PCB controlling our IoT bull and state of the art custom webRTC video layer but that&#8217;s not all, the mechanics of our bull are also worth mentioning.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first mechanical bulls were crude and simple builds that rigidly swirled and jolted until their riders fell off.&nbsp; Over time, they have become more advanced and sophisticated, incorporating new technologies to create a more realistic and challenging experience. Modern Mechanical Bulls can now sway, gallop, and buck, much like the real deal.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mechanical bulls consist of a large mechanical platform that is attached to a motor, and a bull-shaped outer covering that is mounted on top of it. The rider sits on the bull and holds onto a handle, while the device simulates a bull\u2019s bucking, spinning, and jumping movements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main hardware specs of our controls were:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/bull-story-1024x614.jpg\" alt=\"\" class=\"wp-image-3270\" srcset=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/bull-story-1024x614.jpg 1024w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/bull-story-300x180.jpg 300w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/bull-story-768x461.jpg 768w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/bull-story-1000x600.jpg 1000w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/bull-story-400x240.jpg 400w, https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/bull-story.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Steel frame<\/li>\n\n\n\n<li>2 High Torque HS 805BB RC Servo Motors<\/li>\n\n\n\n<li>RC Servo Control PCB<\/li>\n\n\n\n<li>DC Power Converter 5v-12V at 15 amps<\/li>\n\n\n\n<li>2 Clevis and Rod Assemblies<\/li>\n\n\n\n<li>6V DC Power Supply<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A History of Camsoda Internet Controlled Devices (IOT)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A pioneer in Internet of things devices (IoT), Camsoda has been presenting its viewers with playful innovation for the past 8 years. In 2016 Camsoda introduced the world to <a href=\"https:\/\/www.camsoda.com\/cambot\">Cambot<\/a>.&nbsp; A small roomba like device with a mounted cam, cambot\u2019s excursions throughout the <a href=\"https:\/\/www.camsoda.com\/voyeur-house\">Camsoda Voyeur House<\/a> are controlled by Camsoda viewers across the globe.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"338\" style=\"aspect-ratio: 600 \/ 338;\" width=\"600\" autoplay loop muted poster=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/image.png\" src=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/cambot-01.mp4\" playsinline><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Further advances in technology made way for the creations of Camsoda\u2019s viewer controlled sex toy, <a href=\"https:\/\/www.camsoda.com\/fuckbot\">Fuckbot<\/a> in 2017. Fuckbot gives viewers a chance to send commands to the toy throughout a model&#8217;s performance. In 2018, Camsoda viewers were presented with the world\u2019s first robot camgirl, <a href=\"https:\/\/www.camsoda.com\/sex-robot\">Cardibot<\/a> . Viewers can send commands to Cardibot and watch her dance and twerk for her audience.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"314\" style=\"aspect-ratio: 560 \/ 314;\" width=\"560\" autoplay loop muted poster=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/cardibot-1.jpg\" src=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/Cardibot-01.mp4\" playsinline><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">More recently in 2020, Camsoda gave viewers real-time control of full size cars on the road to destruction with the debut of <a href=\"https:\/\/www.camsoda.com\/carwars\">Car Wars<\/a>. Viewers tip to have control of the cars and race against competition.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1058 \/ 720;\" width=\"1058\" autoplay loop muted poster=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/03\/carwars.jpg\" src=\"https:\/\/www.camsoda.com\/blog\/wp-content\/uploads\/2023\/04\/carwars-01.mp4\" playsinline><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">And now, in 2023, Camsoda presents <a href=\"https:\/\/www.camsoda.com\/control-the-bull\">Control-the-Bull<\/a>, the world\u2019s first internet-controlled mechanical bull !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The only thing better than watching someone go for a ride, is to be the person in control of it. Here at Camsoda, sharing good times with our viewers is always of top priority, so we had the fun idea of streaming some of our gorgeous models saddling up for a ride on a mechanical [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":3311,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[419],"tags":[568],"class_list":["post-3249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/posts\/3249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/comments?post=3249"}],"version-history":[{"count":10,"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/posts\/3249\/revisions"}],"predecessor-version":[{"id":3314,"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/posts\/3249\/revisions\/3314"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/media\/3311"}],"wp:attachment":[{"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/media?parent=3249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/categories?post=3249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.camsoda.com\/blog\/wp-json\/wp\/v2\/tags?post=3249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}