Profits are to be split between children’s charities in Scotland and the Obama Foundation, set up by the former president and his wife Michelle.Security is expected to be tight in Edinburgh as police step up resources around major events in the wake of the Manchester bombing.Singer Annie Lennox, rock band Texas and comedian Kevin Bridges will provide entertainment at the event and young people will also be involved, with 13-year-old Mila Stricevic from Glasgow to read a poem on the night after winning a schools competition. Barack Obama looks relaxed at St Andrews Golf ClubCredit:Andrew Milligan/PA Tickets for tables of 10 went on sale from about £5,000 and quickly sold out. Former US president Barack Obama has teed off his first visit to Scotland with a round of golf in St Andrews.Mr Obama could not resist a game on the Old Course at the home of golf in Fife. Mr Obama selects his clubCredit:Andrew Milligan/PA Barack Obama on the putting green Credit:Andrew Milligan/PA Former US president Barack Obama tees off at the first hole at St AndrewsCredit:Andrew Milligan/PA He also visited a snack van and bought a drink before Sir Tom took his photograph with the vendor.The Old Course was not closed off to other players and was being used by other members of the public. The Democrat had earlier touched down at Edinburgh Airport on Friday morning, according to reports, before heading to the course.He will later return to the Scottish capital for the charity dinner. Barack Obama shakes hands with spectators Credit:Andrew Milligan/PA Mr Obama, who was hitting the ball last, said: “Well, going by those shots I shouldn’t feel any pressure.”Despite heavy security, he wandered over to the crowds who had been following him on the course and shook hands with spectators before returning to his game. He is expected to speak to business leaders in Edinburgh later in the day when he gives a speech for The Hunter Foundation.Philanthropist Sir Tom Hunter was among the players involved in the game.The former president’s caddy reassured him there was “no pressure, sir” before he teed off on the third hole. Auction prizes on the night include two walk-on parts in the next Fantastic Beasts film from the Harry Potter franchise and the naming rights to the Gleneagles Hotel American bar.The Hunter Foundation has previously arranged for US politicians and actors, including Bill Clinton, Leonardo DiCaprio and George Clooney, to come to Scotland. Mr Obama, who served eight years in the White House, will address business leaders and take part in a Q&A at the evening event organised by The Hunter Foundation, set up by entrepreneur and philanthropist Sir Tom Hunter. Our manifesto: Real political insight, free for 30 days.Rely on unrivalled insight and sharp analysis from our stellar team of Westminster insiders.Join the most trusted voice in politics. Follow Election 2017 with Telegraph Premium.Start your no obligation, 30 day free trial today. Announcing the visit in April, Sir Tom said: ”From the south side of Chicago to the White House has been an epic, historic journey and it will be a true honour to hear that story from the man who made that journey.”We are both truly proud and delighted to be hosting the 44th president of the United States in Scotland at this event.” Former US president Barack Obama on the Swilcan Bridge while playing a round of golf at the Old Course in St AndrewsCredit:Andrew Milligan /PA Want the best of The Telegraph direct to your email and WhatsApp? Sign up to our free twice-daily Front Page newsletter and new audio briefings.